summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-13 05:24:26 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-13 05:24:26 +0000
commita747366aec6a83103bda6572d06bc4979ffa3f49 (patch)
treeaf0909ff3a35c3e7d7f997013cdced781350640f /lib
parent51f64b032a93d9521962e0ea11fa77536c8df602 (diff)
reverted r38318.
rubyspec reports that there is incompatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@38359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/erb.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/erb.rb b/lib/erb.rb
index 8ff8e115ab..bb47943a86 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -1,4 +1,3 @@
-# -*- coding: us-ascii -*-
# = ERB -- Ruby Templating
#
# Author:: Masatoshi SEKI
@@ -817,7 +816,7 @@ class ERB
end
# Generate results and print them. (see ERB#result)
- def run(b=new_toplevel)
+ def run(b=TOPLEVEL_BINDING)
print self.result(b)
end
@@ -829,7 +828,7 @@ class ERB
# _b_ accepts a Binding or Proc object which is used to set the context of
# code evaluation.
#
- def result(b=new_toplevel)
+ def result(b=TOPLEVEL_BINDING)
if @safe_level
proc {
$SAFE = @safe_level
@@ -840,12 +839,6 @@ class ERB
end
end
- def new_toplevel
- # New binding each time *near* toplevel for unspecified runs
- TOPLEVEL_BINDING.dup
- end
- private :new_toplevel
-
# Define _methodname_ as instance method of _mod_ from compiled ruby source.
#
# example: