method
source_file
v1_8_7_330 -
Show latest stable
- Class:
IRB::IrbLoader
source_file(path)public
No documentation available.
# File lib/irb/ext/loader.rb, line 44
def source_file(path)
irb.suspend_name(path, File.basename(path)) do
irb.suspend_input_method(FileInputMethod.new(path)) do
|back_io|
irb.signal_status(:IN_LOAD) do
if back_io.kind_of?(FileInputMethod)
irb.eval_input
else
begin
irb.eval_input
rescue LoadAbort
print "load abort!!\n"
end
end
end
end
end
end