Class: IRB::Command::Whereami
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base
|
|
Instance Chain:
self,
Base
|
|
Inherits: |
IRB::Command::Base
|
Defined in: | lib/irb/command/whereami.rb |
Class Method Summary
Base
- Inherited
Instance Attribute Summary
Base
- Inherited
Instance Method Summary
Constructor Details
This class inherits a constructor from IRB::Command::Base
Instance Method Details
#execute(_arg)
[ GitHub ]# 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