# # To change this template, choose Tools | Templates # and open the template in the editor. require 'rubygems' require 'ruby2ruby' require 'logger' class StrictNothing (instance_methods-["__id__","__send__","instance_eval", "inspect"]).each do |meth| undef_method meth.to_sym end end class NilNothing < StrictNothing def method_missing(name, *args) nil end end class CallbackNothing < StrictNothing def initialize(callback) @cb = callback end def method_missing(name, *args) @cb.send(name, args) end end load 'pp.rb'