Class: Vident::StimulusController
- Inherits:
-
StimulusAttributeBase
- Object
- StimulusAttributeBase
- Vident::StimulusController
- Defined in:
- lib/vident/stimulus_controller.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from StimulusAttributeBase
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/vident/stimulus_controller.rb', line 5 def name @name end |
#path ⇒ Object (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_name ⇒ Object
9 |
# File 'lib/vident/stimulus_controller.rb', line 9 def data_attribute_name = "controller" |
#data_attribute_value ⇒ Object
11 |
# File 'lib/vident/stimulus_controller.rb', line 11 def data_attribute_value = name |
#to_s ⇒ Object
7 |
# File 'lib/vident/stimulus_controller.rb', line 7 def to_s = name |