Module: Origen::OrgFile::Interceptable

Included in:
Pins::Pin, Pins::PinCollection
Defined in:
lib/origen/org_file/interceptable.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/origen/org_file/interceptable.rb', line 4

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#__interceptor__=(obj) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'lib/origen/org_file/interceptable.rb', line 35

def __interceptor__=(obj)
  @__interceptor__ = obj
end

#myselfObject

Class which include OrgFile::Interceptor should use 'myself' anytime then want to reference 'self', this ensures that there are never any references to the unwrapped object



30
31
32
# File 'lib/origen/org_file/interceptable.rb', line 30

def myself
  @__interceptor__
end