class Byebug::MethodCommand
def execute
def execute obj = warning_eval(@match.post_match) result = if @match[1] prc("method.methods", obj.methods.sort) { |item, _| { name: item } } elsif !obj.is_a?(Module) pr("variable.errors.not_module", object: @match.post_match) else prc("method.methods", obj.instance_methods(false).sort) do |item, _| { name: item } end end puts result end