Class: JsonClient::DSL::Collector
- Inherits:
-
Object
- Object
- JsonClient::DSL::Collector
- Defined in:
- lib/json_client/dsl/collector.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *collection) ⇒ Object
6 7 8 9 10 |
# File 'lib/json_client/dsl/collector.rb', line 6 def method_missing(method_name, *collection) define_singleton_method(method_name) do collection.first end end |