1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* erb.rb: fix def_class bug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2002-11-21 14:39:26 +00:00
parent e97af583f7
commit 4352461b9c

View file

@ -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