Class: Origen::Pins::FunctionProxy

Inherits:
Delegator
  • Object
show all
Defined in:
lib/origen/pins/function_proxy.rb

Overview

Thin wrapper around pin objects to implement a defined function.

The pin object stores all attributes associated with the function, this wrapper simply keeps track of what function a given pin reference refers to

Instance Method Summary collapse

Constructor Details

#initialize(id, pin) ⇒ FunctionProxy

Returns a new instance of FunctionProxy


10
11
12
13
# File 'lib/origen/pins/function_proxy.rb', line 10

def initialize(id, pin)
  @id = id
  @pin = pin
end

Instance Method Details

#__getobj__Object


15
16
17
# File 'lib/origen/pins/function_proxy.rb', line 15

def __getobj__
  @pin
end

#__object__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.

To play nicely with == when a function proxy is wrapping a pin that is already wrapped by an OrgFile interceptor


23
24
25
# File 'lib/origen/pins/function_proxy.rb', line 23

def __object__
  @pin.__object__
end