Class: Hx::Interop::RPC::Dispatcher::Route

Inherits:
Struct
  • Object
show all
Defined in:
lib/interop/rpc/dispatcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#handlerObject

Returns the value of attribute handler

Returns:

  • (Object)

    the current value of handler



8
9
10
# File 'lib/interop/rpc/dispatcher.rb', line 8

def handler
  @handler
end

#matcherObject

Returns the value of attribute matcher

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


13
14
15
# File 'lib/interop/rpc/dispatcher.rb', line 13

def match?(message)
  matcher[message]
end