Sha256: e1d4ea12e32df6d185fe76fb30aba13f2421584742dc785aa7ae622b4b401213
Contents?: true
Size: 435 Bytes
Versions: 9
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true module IRB # :stopdoc: module Command class Whereami < Base category "Context" description "Show the source code around binding.irb again." def execute(_arg) code = irb_context.workspace.code_around_binding if code puts code else puts "The current context doesn't have code." end end end end # :startdoc: end
Version data entries
9 entries across 9 versions & 3 rubygems