Sha256: 62e086d4c608412da68e8c6264835705ad48fa1db33f3e98fc80da27b026fa4e
Contents?: true
Size: 368 Bytes
Versions: 5
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true require_relative "nop" module IRB # :stopdoc: 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 # :startdoc: end
Version data entries
5 entries across 5 versions & 2 rubygems