Method: Rusql::Query#from
- Defined in:
- lib/rusql/query.rb
#from(t) ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/rusql/query.rb', line 46 def from(t) raise TypeException.new(Table, t.class) unless t.is_a?(Table) new_one = self.duplicate new_one.instance_variable_set(:@from_table, t) new_one end |