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
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#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, #project, #rename, #restrict, #spied, #union, #unspied
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
26 27 28 |
# File 'lib/bmg/operator.rb', line 26 def operand @operand end |
#type ⇒ Object (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 |
#operands ⇒ Object
33 34 35 |
# File 'lib/bmg/operator.rb', line 33 def operands [operand] end |