Class: Zui::Binding

Inherits:
Object
  • Object
show all
Defined in:
lib/zui/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node:, property:, reader:, last_value:, animation:) ⇒ Binding

Returns a new instance of Binding.



32
33
34
35
36
37
38
# File 'lib/zui/node.rb', line 32

def initialize(node:, property:, reader:, last_value:, animation:)
  @node = node
  @property = property
  @reader = reader
  @last_value = last_value
  @animation = animation
end

Instance Attribute Details

#animationObject (readonly)

Returns the value of attribute animation.



30
31
32
# File 'lib/zui/node.rb', line 30

def animation
  @animation
end

#last_valueObject

Returns the value of attribute last_value.



29
30
31
# File 'lib/zui/node.rb', line 29

def last_value
  @last_value
end

#nodeObject (readonly)

Returns the value of attribute node.



30
31
32
# File 'lib/zui/node.rb', line 30

def node
  @node
end

#propertyObject (readonly)

Returns the value of attribute property.



30
31
32
# File 'lib/zui/node.rb', line 30

def property
  @property
end

#readerObject (readonly)

Returns the value of attribute reader.



30
31
32
# File 'lib/zui/node.rb', line 30

def reader
  @reader
end