Class: Zui::StructuralBinding

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node:, renderer:, last_children:) ⇒ StructuralBinding

Returns a new instance of StructuralBinding.



45
46
47
48
49
# File 'lib/zui/node.rb', line 45

def initialize(node:, renderer:, last_children:)
  @node = node
  @renderer = renderer
  @last_children = last_children
end

Instance Attribute Details

#last_childrenObject

Returns the value of attribute last_children.



42
43
44
# File 'lib/zui/node.rb', line 42

def last_children
  @last_children
end

#nodeObject (readonly)

Returns the value of attribute node.



43
44
45
# File 'lib/zui/node.rb', line 43

def node
  @node
end

#rendererObject (readonly)

Returns the value of attribute renderer.



43
44
45
# File 'lib/zui/node.rb', line 43

def renderer
  @renderer
end