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



196
197
198
# File 'lib/syntax_tree/haml/format.rb', line 196

def value
  @value
end

Instance Method Details

#format(q, align) ⇒ Object



197
198
199
# File 'lib/syntax_tree/haml/format.rb', line 197

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

#lengthObject



201
202
203
# File 'lib/syntax_tree/haml/format.rb', line 201

def length
  value.length
end