Module: Yarel

Extended by:
ActiveSupport::Autoload
Defined in:
lib/yarel.rb,
lib/yarel/base.rb,
lib/yarel/table.rb,
lib/yarel/connection.rb

Defined Under Namespace

Modules: Base Classes: Connection, Exception, Table

Class Method Summary collapse

Class Method Details

.const_missing(const_name) ⇒ Object



19
20
21
22
# File 'lib/yarel.rb', line 19

def Yarel.const_missing(const_name)
  yql_table_name = const_name.to_s.underscore.gsub("_", ".")
  const_set const_name, Table.new(yql_table_name)
end