Method: Rusql::Query#where
- Defined in:
- lib/rusql/query.rb
#where(condition) ⇒ Object
86 87 88 89 90 91 92 93 |
# File 'lib/rusql/query.rb', line 86 def where(condition) raise TypeException.new(Condition, condition.class) unless condition.is_a?(Condition) new_one = self.duplicate new_one.instance_variable_set(:@condition, condition) new_one end |