Class: IRB::Command::Workspaces
Do not use. This class is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base
|
|
Instance Chain:
self,
Base
|
|
Inherits: |
IRB::Command::Base
|
Defined in: | lib/irb/command/pushws.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/pushws.rb', line 17
def execute(_arg) inspection_resuls = irb_context.instance_variable_get(:@workspace_stack).map do |ws| truncated_inspect(ws.main) end puts "[" + inspection_resuls.join(", ") + "]" end
#truncated_inspect(obj) (private)
[ GitHub ]# File 'lib/irb/command/pushws.rb', line 27
def truncated_inspect(obj) obj_inspection = obj.inspect if obj_inspection.size > 20 obj_inspection = obj_inspection[0, 19] + "...>" end obj_inspection end