summaryrefslogtreecommitdiff
path: root/tool/generic_erb.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-02 23:15:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-02 23:15:59 +0000
commitdc960b8729c195dab6e382d762c88cf904e8e0a2 (patch)
tree636a622c7329b0d84ee91fae7454849a3fd0d1f4 /tool/generic_erb.rb
parent42e0d76c25a8a3875d194579bf2a795cbac2772d (diff)
* tool/generic_erb.rb: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/generic_erb.rb')
-rw-r--r--tool/generic_erb.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/generic_erb.rb b/tool/generic_erb.rb
index 3ddfd7f..8e84a46 100644
--- a/tool/generic_erb.rb
+++ b/tool/generic_erb.rb
@@ -10,8 +10,8 @@ opt = OptionParser.new do |o|
o.on('-o', '--output=PATH') {|v| output = v}
o.on('-c', '--[no-]if-change') {|v| ifchange = v}
o.order!(ARGV)
-end or abort opt.opt_s
-template = ARGV.shift
+end
+template = ARGV.shift or abort opt.to_s
erb = ERB.new(File.read(template), nil, '%')
erb.filename = template
result = erb.result