Class: Qdsl::FunkyProxy
- Inherits:
-
Object
- Object
- Qdsl::FunkyProxy
- Defined in:
- lib/funky_proxy.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(source) ⇒ FunkyProxy
constructor
A new instance of FunkyProxy.
Constructor Details
#initialize(source) ⇒ FunkyProxy
Returns a new instance of FunkyProxy.
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/funky_proxy.rb', line 3 def initialize(source) @source = source source.column_names.each do |column| (class << self; self; end).class_eval do define_method column do Column.new(column, nil, source) end end end end |