Module: Deface::HamlParserMethods
- Included in:
- HamlConverter, Deface::HamlConverter::Parser
- Defined in:
- lib/deface/haml_converter.rb
Instance Method Summary collapse
Instance Method Details
#parse_new_attributes(line) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/deface/haml_converter.rb', line 29 def parse_new_attributes(line) attributes, rest, last_line = super(line) attributes[1] = deface_attributes(attributes[1]) return attributes, rest, last_line end |
#parse_old_attributes(line) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/deface/haml_converter.rb', line 20 def parse_old_attributes(line) attributes_hash, rest, last_line = super(line) attributes_hash = "{#{deface_attributes(attributes_hash)}}" return attributes_hash, rest, last_line end |