module Ruby::RPC::DeferCalls
Public Class Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/ruby/rpc/defer_calls.rb, line 5 def method_missing method, *args, &block puts "Class Method #{name} missing" super unless Ruby::RPC::CLIENT @client ||= RedisRPC::Client.new Redis.new(url:Ruby::RPC::URL,driver: :hiredis), self.to_s, timeout: Ruby::RPC::TIMEOUT @client.send method, *args, &block end
new(*args, &block)
click to toggle source
Calls superclass method
# File lib/ruby/rpc/defer_calls.rb, line 12 def initialize *args, &block @channel = Ruby::RPC::Remote.build_remote self.class super *args, &block end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/ruby/rpc/defer_calls.rb, line 16 def method_missing method, *args, &block super unless Ruby::RPC::CLIENT @client ||= RedisRPC::Client.new Redis.new(url:Ruby::RPC::URL,driver: :hiredis), (@channel || self.to_s), timeout: Ruby::RPC::TIMEOUT @client.send method, *args, &block end