Class: JsxRosetta::IR::Element

Inherits:
Data
  • Object
show all
Includes:
Node
Defined in:
lib/jsx_rosetta/ir/types.rb

Overview

An HTML element (lowercase tag name, no member-expression form).

tag : String — “button”, “div”, etc. attributes : [Attribute | StyleBinding] (and EventBinding once Phase 4 lands) children : [Element | ComponentInvocation | Text | Interpolation | Fragment]

Instance Attribute Summary collapse

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



72
73
74
# File 'lib/jsx_rosetta/ir/types.rb', line 72

def attributes
  @attributes
end

#childrenObject (readonly)

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



72
73
74
# File 'lib/jsx_rosetta/ir/types.rb', line 72

def children
  @children
end

#tagObject (readonly)

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



72
73
74
# File 'lib/jsx_rosetta/ir/types.rb', line 72

def tag
  @tag
end