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:
parent
e97af583f7
commit
4352461b9c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue