Module: Bmg::Operator::Binary

Includes:
Bmg::Operator
Included in:
Image, Join, Matching, NotMatching
Defined in:
lib/bmg/operator.rb

Instance Attribute Summary collapse

Attributes included from Bmg::Operator

#type

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, #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

#prefix, #rxmatch, #suffix

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



46
47
48
# File 'lib/bmg/operator.rb', line 46

def left
  @left
end

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

#operandsObject



54
55
56
# File 'lib/bmg/operator.rb', line 54

def operands
  [left, right]
end