source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/xsd/codegen/commentdef.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 606 bytes
Line 
1# XSD4R - Generating comment definition code
2# Copyright (C) 2004 NAKAMURA, Hiroshi <[email protected]>.
3
4# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
5# redistribute it and/or modify it under the same terms of Ruby's license;
6# either the dual license version in 2003, or any later version.
7
8
9require 'xsd/codegen/gensupport'
10
11
12module XSD
13module CodeGen
14
15
16module CommentDef
17 include GenSupport
18
19 attr_accessor :comment
20
21private
22
23 def dump_comment
24 if /\A#/ =~ @comment
25 format(@comment)
26 else
27 format(@comment).gsub(/^/, '# ')
28 end
29 end
30end
31
32
33end
34end
Note: See TracBrowser for help on using the repository browser.