Class: Aspekt::Object

Inherits:
Hash
  • Object
show all
Defined in:
lib/aspekt.rb

Overview

All Aspekt’s objects are extended from Aspekt::Object.

Direct Known Subclasses

Advice, Pointcut

Class Method Summary collapse

Instance Method Summary collapse

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

.allObject

Returns all Objects created.



23
24
25
# File 'lib/aspekt.rb', line 23

def self.all
  @all ||= []
end