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



194
195
196
197
198
# File 'lib/hamlit/parser/haml_parser.rb', line 194

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

#tabsObject



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

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