summaryrefslogtreecommitdiff
path: root/lib/erb.rb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-21 14:39:26 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-21 14:39:26 +0000
commit4352461b9c3643a9eddea982b44c6caff2fa61cf (patch)
tree82ca1fbab5b2e447a61bb79910180cbda8787e99 /lib/erb.rb
parente97af583f711f138605a22d88e6d04b017257ec8 (diff)
* erb.rb: fix def_class bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/erb.rb')
-rw-r--r--lib/erb.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/erb.rb b/lib/erb.rb
index 7f9326a..f7925db 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -6,7 +6,7 @@ class ERB
Revision = '$Date$' #'
def self.version
- "erb.rb [2.0 #{ERB::Revision.split[1]}]"
+ "erb.rb [2.0.1 #{ERB::Revision.split[1]}]"
end
end
@@ -219,7 +219,7 @@ class ERB
end
def def_class(superklass=Object, methodname='result')
- cls = Class.new
+ cls = Class.new(superklass)
def_method(cls, methodname)
cls
end