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 Haml::Buffer#attributes’s last argument, ‘attributes_hashes`.
Instance Attribute Details
#old=(value) ⇒ Object
Sets the attribute old
212 213 214 |
# File 'lib/hamlit/parser/haml_parser.rb', line 212 def old=(value) @old = value end |
Instance Method Details
#to_literal ⇒ Object
This will be a literal for Haml::Buffer#attributes’s last argument, ‘attributes_hashes`.
222 223 224 |
# File 'lib/hamlit/parser/haml_parser.rb', line 222 def to_literal [new, stripped_old].compact.join(', ') end |