Class: Haml::Parser::Line

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

Instance Method Summary collapse

Instance Method Details

#strip!(from) ⇒ Object



210
211
212
213
214
# File 'lib/haml/parser.rb', line 210

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

#tabsObject



206
207
208
# File 'lib/haml/parser.rb', line 206

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