Module: Bmg::Operator::Binary
- Includes:
- Bmg::Operator
- Included in:
- Image, Join, Matching, NotMatching
- Defined in:
- lib/bmg/operator.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Attributes included from Bmg::Operator
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, #with_typecheck, #without_typecheck, #ys_by_x
Methods included from Algebra
#allbut, #autosummarize, #autowrap, #constants, #extend, #group, #image, #join, #matching, #not_matching, #page, #project, #rename, #restrict, #spied, #union, #unspied
Methods included from Algebra::Shortcuts
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
46 47 48 |
# File 'lib/bmg/operator.rb', line 46 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
46 47 48 |
# File 'lib/bmg/operator.rb', line 46 def right @right end |
Instance Method Details
#_visit(parent, visitor) ⇒ Object
48 49 50 51 52 |
# File 'lib/bmg/operator.rb', line 48 def _visit(parent, visitor) visitor.call(self, parent) left._visit(self, visitor) right._visit(self, visitor) end |
#operands ⇒ Object
54 55 56 |
# File 'lib/bmg/operator.rb', line 54 def operands [left, right] end |