just formatting
This commit is contained in:
parent
dd59a2f9c6
commit
a7dc60e638
@ -3,9 +3,11 @@ module Boot
|
|||||||
|
|
||||||
# described in the ruby language book as the eigenclass, what you get with
|
# described in the ruby language book as the eigenclass, what you get with
|
||||||
# class MyClass
|
# class MyClass
|
||||||
# class << self <--- this is called the eigenclass, or metaclass, and really is just the class object
|
# class << self <--- this is called the eigenclass, or metaclass, and really is just
|
||||||
# .... but gives us the ability to use the syntax as if it were a class
|
# .... the class object but gives us the ability to use the
|
||||||
# PS: can't say i fancy the << self syntax and am considerernig adding a keyword for it, like meta
|
# syntax as if it were a class
|
||||||
|
# PS: can't say i fancy the << self syntax and am considerernig adding a
|
||||||
|
# keyword for it, like meta
|
||||||
# In effect it is a very similar construct to def self.function(...)
|
# In effect it is a very similar construct to def self.function(...)
|
||||||
# So one could write def meta.function(...) and thus define on the meta-class
|
# So one could write def meta.function(...) and thus define on the meta-class
|
||||||
class MetaClass < Virtual::Object
|
class MetaClass < Virtual::Object
|
||||||
|
Loading…
Reference in New Issue
Block a user