Module: Evil::Client::Chaining
- Included in:
- Evil::Client, Evil::Client::Container::Scope
- Defined in:
- lib/evil/client/chaining.rb
Overview
Support chaining of calls for nested scopes/operations
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, **kwargs, &block) ⇒ Object (private)
14 15 16 17 18 |
# File 'lib/evil/client/chaining.rb', line 14 def method_missing(name, *args, **kwargs, &block) return super unless respond_to_missing? name (operations[name] || scopes[name]).call(*args, **kwargs) end |