Class: QDA::Query::LogicalExpression
- Inherits:
-
Object
- Object
- QDA::Query::LogicalExpression
- Defined in:
- lib/weft/query.rb
Instance Method Summary collapse
-
#initialize(arg_1, arg_2) ⇒ LogicalExpression
constructor
A new instance of LogicalExpression.
- #to_a ⇒ Object
- #val_1 ⇒ Object
- #val_2 ⇒ Object
Constructor Details
#initialize(arg_1, arg_2) ⇒ LogicalExpression
Returns a new instance of LogicalExpression.
132 133 134 |
# File 'lib/weft/query.rb', line 132 def initialize(arg_1, arg_2) @arg_1, @arg_2 = arg_1, arg_2 end |
Instance Method Details
#to_a ⇒ Object
136 137 138 |
# File 'lib/weft/query.rb', line 136 def to_a() [ @arg_1.to_a, self, @arg_2.to_a ] end |
#val_1 ⇒ Object
140 141 142 |
# File 'lib/weft/query.rb', line 140 def val_1() @arg_1.respond_to?(:calculate) ? @arg_1.calculate : @arg_1 end |
#val_2 ⇒ Object
144 145 146 |
# File 'lib/weft/query.rb', line 144 def val_2() @arg_2.respond_to?(:calculate) ? @arg_2.calculate : @arg_2 end |