Module: Eywa::GlobalClient
Overview
Convenience module for global access
Instance Method Summary collapse
- #client ⇒ Object
-
#method_missing(method_name, *args, **kwargs, &block) ⇒ Object
Delegate all methods to the client instance.
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, **kwargs, &block) ⇒ Object
Delegate all methods to the client instance
221 222 223 224 225 226 227 |
# File 'lib/eywa.rb', line 221 def method_missing(method_name, *args, **kwargs, &block) if client.respond_to?(method_name) client.send(method_name, *args, **kwargs, &block) else super end end |
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
229 230 231 |
# File 'lib/eywa.rb', line 229 def respond_to_missing?(method_name, include_private = false) client.respond_to?(method_name, include_private) || super end |