Class: AsciiMath::AST::MatrixRow
- Defined in:
- lib/asciimath/ast.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #==(o) ⇒ Object
-
#initialize(nodes) ⇒ MatrixRow
constructor
A new instance of MatrixRow.
- #to_s ⇒ Object
Methods inherited from InnerNode
Constructor Details
Instance Method Details
#==(o) ⇒ Object
439 440 441 |
# File 'lib/asciimath/ast.rb', line 439 def ==(o) o.class == self.class && o.child_nodes == child_nodes end |
#to_s ⇒ Object
435 436 437 |
# File 'lib/asciimath/ast.rb', line 435 def to_s "(" + child_nodes.map { |node| node.to_s }.join(",") + ")" end |