Method: Glyph::DocumentNode#evaluate

Defined in:
lib/glyph/syntax_node.rb

#evaluate(context) ⇒ String

Returns the value of the children node.

Returns:

  • (String)

    the value of the children node

Since:

  • 0.3.0


48
49
50
51
52
# File 'lib/glyph/syntax_node.rb', line 48

def evaluate(context)
	self[:value] = ""
	self.children.each {|c| self[:value] << c.evaluate(context) }
	self[:value]
end