Class: Qdsl::IsTrue
- Inherits:
-
Expression
- Object
- Expression
- Qdsl::IsTrue
- Defined in:
- lib/is_true.rb
Instance Method Summary collapse
-
#initialize(column) ⇒ IsTrue
constructor
A new instance of IsTrue.
- #render_sql(context, ids) ⇒ Object
- #to_expression ⇒ Object
Methods inherited from Expression
Constructor Details
#initialize(column) ⇒ IsTrue
Returns a new instance of IsTrue.
3 4 5 |
# File 'lib/is_true.rb', line 3 def initialize(column) @column = column end |
Instance Method Details
#render_sql(context, ids) ⇒ Object
11 12 13 14 |
# File 'lib/is_true.rb', line 11 def render_sql(context, ids) column_result = render_operand(context, ids, @column) column_result end |
#to_expression ⇒ Object
7 8 9 |
# File 'lib/is_true.rb', line 7 def to_expression self end |