Class: SyntaxTree::Haml::Format::PlainPart
- Inherits:
-
Struct
- Object
- Struct
- SyntaxTree::Haml::Format::PlainPart
- Defined in:
- lib/syntax_tree/haml/format.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
206 207 208 |
# File 'lib/syntax_tree/haml/format.rb', line 206 def value @value end |
Instance Method Details
#format(q, align) ⇒ Object
207 208 209 |
# File 'lib/syntax_tree/haml/format.rb', line 207 def format(q, align) q.text(value) end |
#length ⇒ Object
211 212 213 |
# File 'lib/syntax_tree/haml/format.rb', line 211 def length value.length end |