Class: Aspekt::Object
- Inherits:
-
Hash
- Object
- Hash
- Aspekt::Object
- Defined in:
- lib/aspekt/object.rb
Overview
All Aspekt’s objects are extended from Aspekt::Object.
It extends Hash.
Class Method Summary collapse
-
.all ⇒ Object
Will be probleby deparated and implemented as aspect.
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
19 20 21 22 23 24 |
# File 'lib/aspekt/object.rb', line 19 def initialize opts = {} raise ArgumentError, "should be Hash" unless opts.is_a?(Hash) self.merge! opts self.class.all << self end |