Class: Funicular::VDOM::Element

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

#initializeElement

Returns a new instance of Element.

Parameters:

  • tag (String)
  • props (Hash[Symbol, untyped])
  • children (Array[child_t])


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

def initialize: (String tag, ?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])


25
26
27
# File 'sig/vdom.rbs', line 25

def children
  @children
end

#propsHash[Symbol, untyped] (readonly)

Returns the value of attribute props.

Returns:

  • (Hash[Symbol, untyped])


24
25
26
# File 'sig/vdom.rbs', line 24

def props
  @props
end

#tagString (readonly)

Returns the value of attribute tag.

Returns:

  • (String)


23
24
25
# File 'sig/vdom.rbs', line 23

def tag
  @tag
end

Instance Method Details

#==Boolean

Parameters:

  • other (Object)

Returns:

  • (Boolean)


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

def ==: (untyped other) -> bool