Class: OmniAgent::Streaming::Proxy
- Inherits:
-
Object
- Object
- OmniAgent::Streaming::Proxy
- Defined in:
- lib/omni_agent/streaming/proxy.rb
Instance Method Summary collapse
-
#initialize(agent) ⇒ Proxy
constructor
A new instance of Proxy.
- #method_missing(name, *args, **kwargs, &block) ⇒ Object
- #respond_to_missing?(name, include_private = false) ⇒ Boolean
Constructor Details
#initialize(agent) ⇒ Proxy
Returns a new instance of Proxy.
4 5 6 |
# File 'lib/omni_agent/streaming/proxy.rb', line 4 def initialize(agent) @agent = agent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, **kwargs, &block) ⇒ Object
8 9 10 |
# File 'lib/omni_agent/streaming/proxy.rb', line 8 def method_missing(name, *args, **kwargs, &block) @agent.public_send(name, *args, **kwargs, &block) end |
Instance Method Details
#respond_to_missing?(name, include_private = false) ⇒ Boolean
12 13 14 |
# File 'lib/omni_agent/streaming/proxy.rb', line 12 def respond_to_missing?(name, include_private = false) @agent.respond_to?(name, include_private) || super end |