Class: ZAML::Padding

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

Instance Method Summary collapse

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