Module: Axiom::Operation::Unary
- Included in:
- Aggregate, Function::Unary, Relation::Operation::Unary
- Defined in:
- lib/axiom/support/operation/unary.rb
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
The operand to the operation.
Instance Method Summary collapse
-
#initialize(operand) ⇒ undefined
private
Initialize Unary Operation.
Instance Attribute Details
#operand ⇒ Object (readonly)
The operand to the operation
16 17 18 |
# File 'lib/axiom/support/operation/unary.rb', line 16 def operand @operand end |
Instance Method Details
#initialize(operand) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize Unary Operation
26 27 28 |
# File 'lib/axiom/support/operation/unary.rb', line 26 def initialize(operand) @operand = self.class.freezer.call(operand) end |