puts(exps)
public
Evaluates the given exps, for example:
require 'irb/xmp'
x = XMP.new
x.puts '{:a => 1, :b => 2, :c => 3}'
x.puts 'foo = "bar"'
Show source
def puts(exps)
@io.puts exps
if @irb.context.ignore_sigint
begin
trap_proc_b = trap("SIGINT"){@irb.signal_handle}
catch(:IRB_EXIT) do
@irb.eval_input
end
ensure
trap("SIGINT", trap_proc_b)
end
else
catch(:IRB_EXIT) do
@irb.eval_input
end
end
end