Class: Irbtools::Command::Look
- Inherits:
-
IRB::Command::Base
- Object
- IRB::Command::Base
- Irbtools::Command::Look
- Defined in:
- lib/irbtools/commands/look.rb
Instance Method Summary collapse
Instance Method Details
#execute(arg) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/irbtools/commands/look.rb', line 14 def execute(arg) if arg.strip.empty? p @irb_context.workspace.binding.look else p @irb_context.workspace.binding.eval(arg).look end end |