Module: Bmg::Operator::Unary

Includes:
Bmg::Operator
Included in:
Allbut, Autosummarize, Autowrap, Constants, Extend, Project, Rename, Restrict, Relation::Spied
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, #project, #rename, #restrict, #spied, #union, #unspied

Instance Attribute Details

#operandObject (readonly)

Returns the value of attribute operand.



26
27
28
# File 'lib/bmg/operator.rb', line 26

def operand
  @operand
end

#typeObject (readonly)

Returns the value of attribute type.



26
27
28
# File 'lib/bmg/operator.rb', line 26

def type
  @type
end

Instance Method Details

#_visit(parent, visitor) ⇒ Object



28
29
30
31
# File 'lib/bmg/operator.rb', line 28

def _visit(parent, visitor)
  visitor.call(self, parent)
  operand._visit(self, visitor)
end

#operandsObject



33
34
35
# File 'lib/bmg/operator.rb', line 33

def operands
  [operand]
end