Module: Bmg::Operator::Nary

Includes:
Bmg::Operator
Included in:
Union
Defined in:
lib/bmg/operator.rb

Constant Summary

Constants included from Algebra

Algebra::METHODS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Bmg::Operator

#inspect, #to_s

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

#operandsObject (readonly)

Returns the value of attribute operands.



58
59
60
# File 'lib/bmg/operator.rb', line 58

def operands
  @operands
end

#typeObject (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