module Utils::IRB::Shell
def irb_methods(obj)
Return instance methods of obj's class without the inherited/mixed in
def irb_methods(obj) methods = obj.class.ancestors[1..-1].inject(obj.methods) do |all, a| all -= a.instance_methods end irb_wrap_methods obj, methods end