Sha256: 81935f56d8a7d58ff50acde142c595465f6ddf227acb0356ef1ce2abb267dcf1
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
module Workarea module FlowIo class BogusClient class ProxyClient attr_reader :client_name, :client def initialize(client_name, client) @client_name = client_name @client = client end def method_missing(method, *args) if client.respond_to?(method) if BogusClient.store_requests BogusClient.requests[client_name][method] << args end client.send(method, *args) else super end end def respond_to_missing?(method, include_all = false) client.respond_to?(method) || super end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | lib/workarea/flow_io/bogus_client/proxy_client.rb |