٩( ͡๏̯͡๏)۶ ♪ ♫ ♪ ♫

i² - keeping it real

Notes

ReportingObject to analyze methods called on Object.

Just needed to find out, what kind of methods were called in an object. So I just injected another Object of this instance:

class ReportingObject < BlankSlate
  def method_missing(name, *args, &block)
    puts "received call of #{name} with params: #{args.inspect}"
nil
  end
end

I now can easily find out what was called with all it’s Parameters, any method called will return nil.