Module: Bmg::Operator::Unary
- Includes:
- Bmg::Operator
- Included in:
- Allbut, Autosummarize, Autowrap, Constants, Extend, Group, Page, Project, Rename, Restrict, Rxmatch, Relation::Spied
- Defined in:
- lib/bmg/operator.rb
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
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
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
30 31 32 |
# File 'lib/bmg/operator.rb', line 30 def operand @operand end |
Instance Method Details
#_visit(parent, visitor) ⇒ Object
32 33 34 35 |
# File 'lib/bmg/operator.rb', line 32 def _visit(parent, visitor) visitor.call(self, parent) operand._visit(self, visitor) end |
#operands ⇒ Object
37 38 39 |
# File 'lib/bmg/operator.rb', line 37 def operands [operand] end |