class AsciiMath::AST::Sequence
Public Class Methods
new(nodes)
click to toggle source
Calls superclass method
AsciiMath::AST::InnerNode::new
# File lib/asciimath/ast.rb, line 121 def initialize(nodes) super() nodes.each { |node| add(node) } end
Public Instance Methods
==(o)
click to toggle source
# File lib/asciimath/ast.rb, line 130 def ==(o) o.class == self.class && o.child_nodes == child_nodes end
to_s()
click to toggle source
# File lib/asciimath/ast.rb, line 126 def to_s child_nodes.map { |node| node.to_s }.join(" ") end