You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
283 B

class MethodLogProxy
def initialize(strio, client)
@strio = strio
@client = client
end
# Any method called on the client will just be logged and passed through
def method_missing(m, *args, &block)
@strio << "#{method}(#{args})\n"
client.send(m,args)
end
end