Class: Hamlit::HamlParser::Line

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

Instance Method Summary collapse

Instance Method Details

#strip!(from) ⇒ Object



190
191
192
193
194
# File 'lib/hamlit/parser/haml_parser.rb', line 190

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

#tabsObject



186
187
188
# File 'lib/hamlit/parser/haml_parser.rb', line 186

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