Class: Hx::Interop::RPC::Dispatcher::Route
- Inherits:
-
Struct
- Object
- Struct
- Hx::Interop::RPC::Dispatcher::Route
- Defined in:
- lib/interop/rpc/dispatcher.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#matcher ⇒ Object
Returns the value of attribute matcher.
Instance Method Summary collapse
Instance Attribute Details
#handler ⇒ Object
Returns the value of attribute handler
8 9 10 |
# File 'lib/interop/rpc/dispatcher.rb', line 8 def handler @handler end |
#matcher ⇒ Object
Returns the value of attribute matcher
8 9 10 |
# File 'lib/interop/rpc/dispatcher.rb', line 8 def matcher @matcher end |
Instance Method Details
#call(*args) ⇒ Object
9 10 11 |
# File 'lib/interop/rpc/dispatcher.rb', line 9 def call(*args) handler.call(*args) end |
#match?(message) ⇒ Boolean
13 14 15 |
# File 'lib/interop/rpc/dispatcher.rb', line 13 def match?() matcher[] end |