Class: SyntaxTree::Haml::Format::PlainPart

Inherits:
Struct
  • Object
show all
Defined in:
lib/syntax_tree/haml/format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#value ⇒ Object

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of value



183
184
185
# File 'lib/syntax_tree/haml/format.rb', line 183

def value
  @value
end

Instance Method Details

#format(q, align) ⇒ Object



184
185
186
# File 'lib/syntax_tree/haml/format.rb', line 184

def format(q, align)
  q.text(value)
end

#length ⇒ Object



188
189
190
# File 'lib/syntax_tree/haml/format.rb', line 188

def length
  value.length
end