Class: Aspekt::Object
- Inherits:
-
Hash
- Object
- Hash
- Aspekt::Object
- Defined in:
- lib/aspekt.rb
Overview
All Aspekt’s objects are extended from Aspekt::Object.
Class Method Summary collapse
-
.all ⇒ Object
Returns all Objects created.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Object
constructor
Creates a new Aspekt::Object with base class Hash and registres self in class :@all.
Constructor Details
#initialize(opts) ⇒ Object
Creates a new Aspekt::Object with base class Hash and registres self in class :@all.
17 18 19 20 |
# File 'lib/aspekt.rb', line 17 def initialize opts self.merge! opts self.class.all << self end |
Class Method Details
.all ⇒ Object
Returns all Objects created.
23 24 25 |
# File 'lib/aspekt.rb', line 23 def self.all @all ||= [] end |