Class: Funicular::VDOM::Component

Inherits:
VNode
  • Object
show all
Defined in:
sig/vdom.rbs

Instance Attribute Summary collapse

Attributes inherited from VNode

#key, #type

Instance Method Summary collapse

Constructor Details

#initializeComponent

Returns a new instance of Component.

Parameters:

  • component_class (Object)
  • props (Hash[Symbol, untyped])
  • children (Array[child_t])


64
# File 'sig/vdom.rbs', line 64

def initialize: (untyped component_class, ?Hash[Symbol, untyped] props, ?Array[child_t] children) -> void

Instance Attribute Details

#childrenArray[child_t] (readonly)

Returns the value of attribute children.

Returns:

  • (Array[child_t])


60
61
62
# File 'sig/vdom.rbs', line 60

def children
  @children
end

#component_classObject (readonly)

Returns the value of attribute component_class.

Returns:

  • (Object)


58
59
60
# File 'sig/vdom.rbs', line 58

def component_class
  @component_class
end

#instanceObject

Returns the value of attribute instance.

Returns:

  • (Object)


61
62
63
# File 'sig/vdom.rbs', line 61

def instance
  @instance
end

#propsHash[Symbol, untyped] (readonly)

Returns the value of attribute props.

Returns:

  • (Hash[Symbol, untyped])


59
60
61
# File 'sig/vdom.rbs', line 59

def props
  @props
end

#runtimeRuntime?

Returns the value of attribute runtime.

Returns:



62
63
64
# File 'sig/vdom.rbs', line 62

def runtime
  @runtime
end

Instance Method Details

#==Boolean

Parameters:

  • other (Object)

Returns:

  • (Boolean)


65
# File 'sig/vdom.rbs', line 65

def ==: (untyped other) -> bool