Class: Haml::Parser::Line
- Inherits:
-
Struct
- Object
- Struct
- Haml::Parser::Line
- Defined in:
- lib/haml/parser.rb
Instance Method Summary collapse
Instance Method Details
#strip!(from) ⇒ Object
215 216 217 218 219 |
# File 'lib/haml/parser.rb', line 215 def strip!(from) self.text = text[from..-1] self.text.lstrip! self end |
#tabs ⇒ Object
211 212 213 |
# File 'lib/haml/parser.rb', line 211 def tabs @tabs ||= parser.compute_tabs(self) end |