Class: EZML::Parser::Line

Inherits:
Struct
  • Object
show all
Defined in:
lib/ezml/parser.rb

Instance Method Summary collapse

Instance Method Details

#strip!(from) ⇒ Object



189
190
191
192
193
# File 'lib/ezml/parser.rb', line 189

def strip!(from)
  self.text = text[from..-1]
  self.text.lstrip!
  self
end

#tabsObject



185
186
187
# File 'lib/ezml/parser.rb', line 185

def tabs
  @tabs ||= parser.compute_tabs(self)
end