Class: VORuby::ADQL::BinaryOperator
- Defined in:
- lib/voruby/adql/adql.rb,
lib/voruby/adql/transforms.rb
Overview
Used for expressing operations like A+B.
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) ⇒ BinaryOperator
constructor
A new instance of BinaryOperator.
- #to_adqls ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(operator, op_list = nil) ⇒ BinaryOperator
Returns a new instance of BinaryOperator.
134 135 136 137 |
# File 'lib/voruby/adql/adql.rb', line 134 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.
130 131 132 |
# File 'lib/voruby/adql/adql.rb', line 130 def operator @operator end |