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, #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



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

def data_attribute_name
  "controller"
end

#data_attribute_valueObject



15
16
17
# File 'lib/vident/stimulus_controller.rb', line 15

def data_attribute_value
  name
end

#to_sObject



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

def to_s
  name
end