Class: EZML::Parser::DynamicAttributes
- Defined in:
- lib/ezml/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 EZML::Buffer#attributes’s last argument, ‘attributes_hashes`.
Instance Attribute Details
#old=(value) ⇒ Object
Sets the attribute old
210 211 212 |
# File 'lib/ezml/parser.rb', line 210 def old=(value) @old = value end |
Instance Method Details
#to_literal ⇒ Object
This will be a literal for EZML::Buffer#attributes’s last argument, ‘attributes_hashes`.
219 220 221 |
# File 'lib/ezml/parser.rb', line 219 def to_literal [new, stripped_old].compact.join(', ') end |