module XSD::CodeGen::CommentDef

Attributes

comment[RW]

Private Instance Methods

dump_comment() click to toggle source
# File lib/xsd/codegen/commentdef.rb, line 23
def dump_comment
  if /\A#/ =~ @comment
    format(@comment)
  else
    format(@comment).gsub(/^/, '# ')
  end
end