Method: Rusql::Query#limit
- Defined in:
- lib/rusql/query.rb
#limit(c) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/rusql/query.rb', line 37 def limit(c) raise TypeException.new(Fixnum, c.class) unless c.is_a?(Fixnum) new_one = self.duplicate new_one.instance_variable_set(:@limit, c) new_one end |