Method: IRB::Command::Whereami#execute
- Defined in:
- lib/irb/command/whereami.rb
#execute(_arg) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/irb/command/whereami.rb', line 11 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 |