class Glyph::DocumentNode

The root element of any Glyph Abstract Syntax Tree @since 0.3.0

Public Instance Methods

evaluate(context) click to toggle source

@return [String] the value of the children node @since 0.3.0

# 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