Class: QML::Reactive::SimpleProperty
- Inherits:
-
Object
- Object
- QML::Reactive::SimpleProperty
- Defined in:
- lib/qml/reactive/simple_property.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#changed ⇒ Object
readonly
Returns the value of attribute changed.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize ⇒ SimpleProperty
constructor
A new instance of SimpleProperty.
Constructor Details
#initialize ⇒ SimpleProperty
Returns a new instance of SimpleProperty.
12 13 14 |
# File 'lib/qml/reactive/simple_property.rb', line 12 def initialize @changed = Signal.new([:new_value]) end |
Instance Attribute Details
#changed ⇒ Object (readonly)
Returns the value of attribute changed.
10 11 12 |
# File 'lib/qml/reactive/simple_property.rb', line 10 def changed @changed end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/qml/reactive/simple_property.rb', line 6 def value @value end |