Class: IRB::Command::Source
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
LoaderCommand ,
Base
|
|
Instance Chain:
|
|
Inherits: |
IRB::Command::LoaderCommand
|
Defined in: | lib/irb/command/load.rb |
Class Method Summary
Base
- Inherited
Instance Attribute Summary
Base
- Inherited
Instance Method Summary
LoaderCommand
- Inherited
::IRB::IrbLoader
- Included
#irb_load | Loads the given file similarly to |
#load_file | Loads the given file in the current session’s context and evaluates it. |
#ruby_load, #ruby_require, | |
#source_file | Loads a given file in the current session and displays the source lines. |
#old, #search_file_from_ruby_path |
RubyArgsExtractor
- Included
Base
- Inherited
Constructor Details
This class inherits a constructor from IRB::Command::Base
Instance Method Details
#execute(arg)
[ GitHub ]# File 'lib/irb/command/load.rb', line 78
def execute(arg) args, kwargs = ruby_args(arg) execute_internal(*args, **kwargs) end
#execute_internal(file_name = nil)
[ GitHub ]# File 'lib/irb/command/load.rb', line 83
def execute_internal(file_name = nil) raise_cmd_argument_error unless file_name source_file(file_name) end