mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b52ae2e64
commit
287a34ae0d
856 changed files with 13989 additions and 13989 deletions
14
lib/irb.rb
14
lib/irb.rb
|
@ -64,7 +64,7 @@ module IRB
|
|||
trap("SIGINT") do
|
||||
irb.signal_handle
|
||||
end
|
||||
|
||||
|
||||
catch(:IRB_EXIT) do
|
||||
irb.eval_input
|
||||
end
|
||||
|
@ -84,7 +84,7 @@ module IRB
|
|||
end
|
||||
|
||||
#
|
||||
# irb interpreter main routine
|
||||
# irb interpreter main routine
|
||||
#
|
||||
class Irb
|
||||
def initialize(workspace = nil, input_method = nil, output_method = nil)
|
||||
|
@ -125,7 +125,7 @@ module IRB
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@scanner.set_input(@context.io) do
|
||||
signal_status(:IN_INPUT) do
|
||||
if l = @context.io.gets
|
||||
|
@ -158,7 +158,7 @@ module IRB
|
|||
print exc.class, ": ", exc, "\n"
|
||||
if exc.backtrace[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/ &&
|
||||
!(SyntaxError === exc)
|
||||
irb_bug = true
|
||||
irb_bug = true
|
||||
else
|
||||
irb_bug = false
|
||||
end
|
||||
|
@ -174,7 +174,7 @@ module IRB
|
|||
else
|
||||
lasts.push "\tfrom "+m
|
||||
if lasts.size > @context.back_trace_limit
|
||||
lasts.shift
|
||||
lasts.shift
|
||||
levels += 1
|
||||
end
|
||||
end
|
||||
|
@ -279,13 +279,13 @@ module IRB
|
|||
when "l"
|
||||
ltype
|
||||
when "i"
|
||||
if $1
|
||||
if $1
|
||||
format("%" + $1 + "d", indent)
|
||||
else
|
||||
indent.to_s
|
||||
end
|
||||
when "n"
|
||||
if $1
|
||||
if $1
|
||||
format("%" + $1 + "d", line_no)
|
||||
else
|
||||
line_no.to_s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue