Class: JsxRosetta::Backend::ViewComponent::EventDescriptor

Inherits:
Data
  • Object
show all
Defined in:
lib/jsx_rosetta/backend/view_component.rb

Overview

Structured intermediate for tag_builder_data_action — avoids the fragile “parse what you just rendered” pattern. :literal is a raw action token like ‘“click->foo#bar”`; :ruby is a Ruby expression whose value is the action string (e.g. `event.handler.expression`).

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



35
36
37
# File 'lib/jsx_rosetta/backend/view_component.rb', line 35

def body
  @body
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



35
36
37
# File 'lib/jsx_rosetta/backend/view_component.rb', line 35

def kind
  @kind
end