Sha256: f10060b4d49dc58285de18164a6009a537f7e9b410caeabda17d5685aab7ebc8

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

require "irb"

module IRB
  module Command
    class Shadow < Base
      category "Introspection"
      description 'Method list and lookup path inspection based on object shadow gem'

      def execute(*args)
        if args.empty?
          @irb_context.workspace.binding.shadow
        else
          obj, *params = *args
          obj.shadow(*params)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
irbtools-4.0.8 lib/irbtools/commands/shadow.rb