Class: Origen::Parameters::Live
- Defined in:
- lib/origen/parameters/live.rb
Instance Method Summary collapse
- #__getobj__ ⇒ Object
-
#initialize(options) ⇒ Live
constructor
A new instance of Live.
- #is_a_live_parameter? ⇒ Boolean
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() @owner = [:owner] @path = [:path].split('.') @name = [: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
17 18 19 |
# File 'lib/origen/parameters/live.rb', line 17 def is_a_live_parameter? true end |