Class: ZAML::Comment
Instance Method Summary collapse
Methods inherited from String
#classify_for_zaml, #escaped_for_zaml
Methods included from Icss::Meta::StringSchema
Methods included from Icss::Meta::PrimitiveSchema
Instance Method Details
#to_zaml(z = ZAML.new) ⇒ Object
125 126 127 128 |
# File 'lib/icss/serialization/zaml.rb', line 125 def to_zaml(z=ZAML.new) lines = self.split("\n",-1).map{|s| "# #{s}".strip } lines.each{|line| z.nl ; z.emit(line) } end |