Class: QML::Reactive::SimpleProperty

Inherits:
Object
  • Object
show all
Defined in:
lib/qml/reactive/simple_property.rb

Direct Known Subclasses

Property

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSimpleProperty

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

#changedObject (readonly)

Returns the value of attribute changed.



10
11
12
# File 'lib/qml/reactive/simple_property.rb', line 10

def changed
  @changed
end

#valueObject

Returns the value of attribute value.



6
7
8
# File 'lib/qml/reactive/simple_property.rb', line 6

def value
  @value
end