Class: SyntaxTree::Haml::Tag::PlainPart

Inherits:
Struct
  • Object
show all
Defined in:
lib/syntax_tree/haml/tag.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



23
24
25
# File 'lib/syntax_tree/haml/tag.rb', line 23

def value
  @value
end

Instance Method Details

#format(q, align) ⇒ Object



24
25
26
# File 'lib/syntax_tree/haml/tag.rb', line 24

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

#lengthObject



28
29
30
# File 'lib/syntax_tree/haml/tag.rb', line 28

def length
  value.length
end