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