Class: Vident::StimulusController

Inherits:
StimulusAttributeBase show all
Defined in:
lib/vident/stimulus_controller.rb

Instance Attribute Summary collapse

Attributes inherited from StimulusAttributeBase

#implied_controller

Instance Method Summary collapse

Methods inherited from StimulusAttributeBase

#initialize, #inspect, js_name, stimulize_path, #to_h

Constructor Details

This class inherits a constructor from Vident::StimulusAttributeBase

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/vident/stimulus_controller.rb', line 5

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/vident/stimulus_controller.rb', line 5

def path
  @path
end

Instance Method Details

#data_attribute_nameObject



9
# File 'lib/vident/stimulus_controller.rb', line 9

def data_attribute_name = "controller"

#data_attribute_valueObject



11
# File 'lib/vident/stimulus_controller.rb', line 11

def data_attribute_value = name

#to_sObject



7
# File 'lib/vident/stimulus_controller.rb', line 7

def to_s = name