Module: Bmg::Operator::Nary
Constant Summary
Constants included from Algebra
Instance Attribute Summary collapse
-
#operands ⇒ Object
readonly
Returns the value of attribute operands.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Methods included from Bmg::Operator
Methods included from Relation
#debug, #delete, empty, #empty?, #insert, new, #one, #one_or_nil, #to_ast, #to_json, #update, #visit, #ys_by_x
Methods included from Algebra
#allbut, #autosummarize, #autowrap, #constants, #extend, #image, #matching, #project, #rename, #restrict, #spied, #union, #unspied
Instance Attribute Details
#operands ⇒ Object (readonly)
Returns the value of attribute operands.
58 59 60 |
# File 'lib/bmg/operator.rb', line 58 def operands @operands end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
58 59 60 |
# File 'lib/bmg/operator.rb', line 58 def type @type end |
Instance Method Details
#_visit(parent, visitor) ⇒ Object
60 61 62 63 |
# File 'lib/bmg/operator.rb', line 60 def _visit(parent, visitor) visitor.call(self, parent) operands.each{|op| op._visit(self, visitor) } end |