Class: Hamlit::HamlParser::DynamicAttributes
- Defined in:
- lib/hamlit/parser/haml_parser.rb
Overview
Instance Attribute Summary collapse
-
#old ⇒ Object
writeonly
Sets the attribute old.
Instance Method Summary collapse
-
#to_literal ⇒ Object
This will be a literal for Hamlit::HamlBuffer#attributes’s last argument, ‘attributes_hashes`.
Instance Attribute Details
#old=(value) ⇒ Object
Sets the attribute old
215 216 217 |
# File 'lib/hamlit/parser/haml_parser.rb', line 215 def old=(value) @old = value end |
Instance Method Details
#to_literal ⇒ Object
This will be a literal for Hamlit::HamlBuffer#attributes’s last argument, ‘attributes_hashes`.
225 226 227 |
# File 'lib/hamlit/parser/haml_parser.rb', line 225 def to_literal [new, stripped_old].compact.join(', ') end |