Class: AgnosticBackend::Queryable::Operations::Unary
Direct Known Subclasses
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Attributes inherited from TreeNode
Instance Method Summary collapse
-
#initialize(operand:, context: nil) ⇒ Unary
constructor
A new instance of Unary.
Methods inherited from TreeNode
Methods included from Utilities
Constructor Details
#initialize(operand:, context: nil) ⇒ Unary
Returns a new instance of Unary.
7 8 9 10 |
# File 'lib/agnostic_backend/queryable/operations/unary.rb', line 7 def initialize(operand:, context: nil) @operand = operand super([operand], context) end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
5 6 7 |
# File 'lib/agnostic_backend/queryable/operations/unary.rb', line 5 def operand @operand end |