Method: Rusql#select
- Defined in:
- lib/rusql.rb
#select(*opts) ⇒ Object
81 82 83 84 85 86 87 |
# File 'lib/rusql.rb', line 81 def select(*opts) opts.each do |arg| raise TypeException.new(Selector, arg.class) unless arg.is_a?(Selector) || arg.is_a?(Column) end Query.new(opts.map{|a| a.is_a?(Column) ? a.as_selector : a }) end |