Class: JsxRosetta::IR::StimulusBinding

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

Overview

An event handler routed through a generated Stimulus controller.

event : String — lowercased DOM event name. method_name : String — Stimulus controller method (camelCase per

Stimulus convention).

Instance Attribute Summary collapse

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



226
227
228
# File 'lib/jsx_rosetta/ir/types.rb', line 226

def event
  @event
end

#method_nameObject (readonly)

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



226
227
228
# File 'lib/jsx_rosetta/ir/types.rb', line 226

def method_name
  @method_name
end