Class: ActorSystem::Core::Prop
- Includes:
- ObservableImplementation
- Defined in:
- lib/actor_system/core/props.rb
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Prop
constructor
A new instance of Prop.
- #value=(value) ⇒ Object
Methods included from ObservableImplementation
#add_observer, #notify_observers, #observers
Constructor Details
#initialize(name, value) ⇒ Prop
Returns a new instance of Prop.
8 9 10 11 |
# File 'lib/actor_system/core/props.rb', line 8 def initialize name, value @name = name @value = value end |
Instance Method Details
#value=(value) ⇒ Object
13 14 15 16 |
# File 'lib/actor_system/core/props.rb', line 13 def value= value @value = value notify_observers(value) end |