mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
forgot some checkins.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
94df732f8b
commit
1d3d27b42d
36 changed files with 2191 additions and 297 deletions
|
@ -11,7 +11,7 @@
|
|||
# a = SomeSingletonClass.new # error (`new' is private)
|
||||
|
||||
module Singleton
|
||||
def Singleton.append_features(klass)
|
||||
def Singleton.included(klass)
|
||||
klass.private_class_method(:new)
|
||||
klass.instance_eval %{
|
||||
@__instance__ = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue