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

* lib/singleton.rb (SingletonClassMethods): _load should be public.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-05-28 06:18:18 +00:00
parent 3ab17047f5
commit e02270d85d
2 changed files with 30 additions and 26 deletions

View file

@ -1,3 +1,7 @@
Wed May 28 15:18:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/singleton.rb (SingletonClassMethods): _load should be public.
Wed May 28 13:30:43 2008 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/japanese.c: add workarround for Unicode to CP932.

View file

@ -85,6 +85,10 @@ module Singleton
Singleton.__init__(super)
end
def _load(str)
instance
end
private
# ensure that the Singleton pattern is properly inherited
@ -92,10 +96,6 @@ module Singleton
super
Singleton.__init__(sub_klass)
end
def _load(str)
instance
end
end
class << Singleton