class ClientForPoslynx::Net::EM_Connector::CallbackMap
Attributes
callable_map[R]
Public Class Methods
new(callable_map={})
click to toggle source
# File lib/client_for_poslynx/net/em_connector/callback_map.rb, line 16 def initialize(callable_map={}) @callable_map = callable_map end
Public Instance Methods
==(other)
click to toggle source
# File lib/client_for_poslynx/net/em_connector/callback_map.rb, line 20 def ==(other) callable_map == other.callable_map end
[](callback_key)
click to toggle source
# File lib/client_for_poslynx/net/em_connector/callback_map.rb, line 24 def [](callback_key) callable_map[callback_key] end
call(callback_key, *args)
click to toggle source
# File lib/client_for_poslynx/net/em_connector/callback_map.rb, line 38 def call(callback_key, *args) callback = callable_map[callback_key] callback.call *args if callback end
merge(other)
click to toggle source
# File lib/client_for_poslynx/net/em_connector/callback_map.rb, line 32 def merge(other) self.class.new( callable_map.merge( other.to_hash ) ) end
to_hash()
click to toggle source
# File lib/client_for_poslynx/net/em_connector/callback_map.rb, line 28 def to_hash callable_map.dup end