Class: SPARQL::Algebra::Operator::Unary Abstract
- Inherits:
-
SPARQL::Algebra::Operator
- Object
- SPARQL::Algebra::Operator
- SPARQL::Algebra::Operator::Unary
- Defined in:
- lib/sparql/algebra/operator.rb
Overview
This class is abstract.
A SPARQL unary operator.
Operators of this kind take one operand.
Constant Summary
- ARITY =
1
Instance Method Summary (collapse)
-
- (Unary) initialize(arg, options = {})
constructor
A new instance of Unary.
Methods inherited from SPARQL::Algebra::Operator
#boolean, #constant?, evaluate, #evaluate, #operand, #to_sse, #variable?
Constructor Details
- (Unary) initialize(arg, options = {})
A new instance of Unary
173 174 175 176 |
# File 'lib/sparql/algebra/operator.rb', line 173 def initialize(arg, = {}) @operands = [arg] super() end |