Class: VORuby::ADQL::UnaryOperator
- Defined in:
- lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb
Overview
Operators for expressing a single element operation.
Constant Summary collapse
- @@operators =
['+', '-']
Instance Attribute Summary collapse
-
#operator ⇒ Object
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(operator, op_list = nil) ⇒ UnaryOperator
constructor
A new instance of UnaryOperator.
- #to_adqls ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(operator, op_list = nil) ⇒ UnaryOperator
Returns a new instance of UnaryOperator.
214 215 216 217 |
# File 'lib/voruby/adql/adql.rb', line 214 def initialize(operator, op_list=nil) @op_list = op_list || @@operators self.operator = operator end |
Instance Attribute Details
#operator ⇒ Object
Returns the value of attribute operator.
210 211 212 |
# File 'lib/voruby/adql/adql.rb', line 210 def operator @operator end |