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

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



205
206
207
# File 'lib/syntax_tree/haml/format.rb', line 205

def value
  @value
end

Instance Method Details

#format(q, align) ⇒ Object



206
207
208
# File 'lib/syntax_tree/haml/format.rb', line 206

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

#lengthObject



210
211
212
# File 'lib/syntax_tree/haml/format.rb', line 210

def length
  value.length
end