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



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

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

#tabsObject



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

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