Sha256: 307c496288466e59ba72b8cb214060ba05635ef9ac191bd527095c85933a98e5
Contents?: true
Size: 362 Bytes
Versions: 18
Compression:
Stored size: 362 Bytes
Contents
# frozen_string_literal: true require_relative "nop" # :stopdoc: module IRB module ExtendCommand class Whereami < Nop def execute(*) code = irb_context.workspace.code_around_binding if code puts code else puts "The current context doesn't have code." end end end end end # :startdoc:
Version data entries
18 entries across 18 versions & 2 rubygems