aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-02 04:40:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-02 04:40:34 +0000
commit0c216c32dc9e5ce2554b516e821c4e94c2f05316 (patch)
tree7fbd6ebca9f5550d8b8d8e252f5f343bc4fb5551 /bin
parent10547e3c412be6f4f14f818294bf456dacad1ec4 (diff)
downloadruby-0c216c32dc9e5ce2554b516e821c4e94c2f05316.tar.gz
* bin/erb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/erb12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/erb b/bin/erb
index 6db3d0b6ed..6b92ac2284 100755
--- a/bin/erb
+++ b/bin/erb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
# Tiny eRuby --- ERB2
-# Copyright (c) 1999-2000,2002 Masatoshi SEKI
+# Copyright (c) 1999-2000,2002 Masatoshi SEKI
# You can redistribute it and/or modify it under the same terms as Ruby.
require 'erb'
@@ -14,11 +14,11 @@ class ERB
if arg =~ /^-(.)(.*)/
if $1 == '-'
arg, @maybe_arg = arg.split(/=/, 2)
- return arg
+ return arg
end
raise 'unknown switch "-"' if $2[0] == ?- and $1 != 'T'
if $2.size > 0
- self.unshift "-#{$2}"
+ self.unshift "-#{$2}"
@maybe_arg = $2
else
@maybe_arg = nil
@@ -29,7 +29,7 @@ class ERB
nil
end
end
-
+
def ARGV.req_arg
(@maybe_arg || self.shift || raise('missing argument')).tap {
@maybe_arg = nil
@@ -77,7 +77,7 @@ class ERB
when '-T' # trim mode
arg = ARGV.req_arg
if arg == '-'
- trim_mode = arg
+ trim_mode = arg
next
end
raise "invalid trim mode #{arg.dump}" unless arg =~ /^[0-2]$/
@@ -97,7 +97,7 @@ class ERB
end
rescue # usage
STDERR.puts $!.to_s
- STDERR.puts File.basename($0) +
+ STDERR.puts File.basename($0) +
" [switches] [inputfile]"
STDERR.puts <<EOU
-x print ruby script