Class: ZAML::Padding
Instance Method Summary collapse
-
#initialize(nlines) ⇒ Padding
constructor
A new instance of Padding.
- #to_zaml(z = ZAML.new) ⇒ Object
Constructor Details
#initialize(nlines) ⇒ Padding
Returns a new instance of Padding.
132 133 134 |
# File 'lib/icss/serialization/zaml.rb', line 132 def initialize(nlines) @nlines = nlines end |
Instance Method Details
#to_zaml(z = ZAML.new) ⇒ Object
135 136 137 138 |
# File 'lib/icss/serialization/zaml.rb', line 135 def to_zaml(z=ZAML.new) @nlines.times{ z.nl ; z.emit('') } z.to_s end |