Class: IRB::ExtendCommand::Load
- Inherits:
-
LoaderCommand
- Object
- Nop
- LoaderCommand
- IRB::ExtendCommand::Load
- Defined in:
- lib/irb/cmd/load.rb
Instance Attribute Summary
Attributes inherited from Nop
Instance Method Summary collapse
Methods inherited from LoaderCommand
Methods included from IrbLoader
#irb_load, #load_file, #old, #search_file_from_ruby_path, #source_file
Methods inherited from Nop
category, description, execute, #initialize
Constructor Details
This class inherits a constructor from IRB::ExtendCommand::Nop
Instance Method Details
#execute(file_name = nil, priv = nil) ⇒ Object
26 27 28 29 |
# File 'lib/irb/cmd/load.rb', line 26 def execute(file_name = nil, priv = nil) raise_cmd_argument_error unless file_name irb_load(file_name, priv) end |