Class: Origen::Parameters::Live

Inherits:
Delegator
  • Object
show all
Defined in:
lib/origen/parameters/live.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Live

Returns a new instance of Live


5
6
7
8
9
# File 'lib/origen/parameters/live.rb', line 5

def initialize(options)
  @owner = options[:owner]
  @path = options[:path].split('.')
  @name = options[:name]
end

Instance Method Details

#__getobj__Object


11
12
13
14
15
# File 'lib/origen/parameters/live.rb', line 11

def __getobj__
  p = @owner.params
  @path.each { |pt| p = p.send(pt) }
  p.send(@name)
end

#is_a_live_parameter?Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/origen/parameters/live.rb', line 17

def is_a_live_parameter?
  true
end