Class: Haml::Parser::DynamicAttributes
- Inherits:
-
Struct
- Object
- Struct
- Haml::Parser::DynamicAttributes
- Defined in:
- lib/haml/parser.rb
Overview
Instance Attribute Summary collapse
-
#old ⇒ Object
writeonly
Sets the attribute old.
Instance Method Summary collapse
-
#to_literal
This will be a literal for Haml::HamlBuffer#attributes’s last argument,
attributes_hashes
.
Instance Attribute Details
#old=(value) ⇒ Object
Sets the attribute old
236 237 238 |
# File 'lib/haml/parser.rb', line 236
def old=(value)
@old = value
end
|
Instance Method Details
#to_literal
This will be a literal for Haml::HamlBuffer#attributes’s last argument, attributes_hashes
.
246 247 248 |
# File 'lib/haml/parser.rb', line 246
def to_literal
[new, stripped_old].compact.join(', ')
end
|