Class: ConstantExpression
- Inherits:
-
Object
- Object
- ConstantExpression
- Defined in:
- lib/expressions/constant_expression.rb
Class Method Summary collapse
Instance Method Summary collapse
- #build_arel(arel_table) ⇒ Object
-
#initialize(value) ⇒ ConstantExpression
constructor
A new instance of ConstantExpression.
Constructor Details
#initialize(value) ⇒ ConstantExpression
Returns a new instance of ConstantExpression.
7 8 9 |
# File 'lib/expressions/constant_expression.rb', line 7 def initialize(value) @value = value end |
Class Method Details
.parse(array) ⇒ Object
3 4 5 |
# File 'lib/expressions/constant_expression.rb', line 3 def self.parse(array) self.new(array[1]) end |
Instance Method Details
#build_arel(arel_table) ⇒ Object
11 12 13 |
# File 'lib/expressions/constant_expression.rb', line 11 def build_arel(arel_table) @value end |