Class: ZAML::Comment

Inherits:
String show all
Defined in:
lib/icss/serialization/zaml.rb

Instance Method Summary collapse

Methods inherited from String

#classify_for_zaml, #escaped_for_zaml

Methods included from Icss::Meta::StringSchema

#fullname, #receive

Methods included from Icss::Meta::PrimitiveSchema

#doc, #doc=, #to_schema

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