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
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
11 12 13 |
# File 'lib/vident/stimulus_controller.rb', line 11 def data_attribute_name "controller" end |
#data_attribute_value ⇒ Object
15 16 17 |
# File 'lib/vident/stimulus_controller.rb', line 15 def data_attribute_value name end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/vident/stimulus_controller.rb', line 7 def to_s name end |