class Byebug::MethodCommand

def execute

def execute
  obj = debug_eval(@match.post_match)
  if @match[1] == "iv"
    obj.instance_variables.sort.each do |v|
      print "#{v} = #{obj.instance_variable_get(v).inspect}\n"
    end
  elsif @match[1]
    print "#{columnize(obj.methods.sort(), Command.settings[:width])}\n"
  else
    return print "Should be Class/Module: #{@match.post_match}\n" unless
      obj.kind_of? Module
    print "#{columnize(obj.instance_methods(false).sort(),
                       Command.settings[:width])}\n"
  end
end