class Bogus::MethodCallProxy
Public Class Methods
new(&on_called)
click to toggle source
# File lib/bogus/proxies_method_calls.rb, line 11 def initialize(&on_called) @on_called = on_called end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/bogus/proxies_method_calls.rb, line 19 def method_missing(name, *args, &block) @on_called.call(name, *args, &block) end
raise(*args)
click to toggle source
# File lib/bogus/proxies_method_calls.rb, line 15 def raise(*args) ::Kernel.raise(*args) end