class Erb::Generators::ComponentGenerator
Public Instance Methods
copy_view_file()
click to toggle source
Calls superclass method
ViewComponent::AbstractGenerator#copy_view_file
# File lib/rails/generators/erb/component_generator.rb, line 20 def copy_view_file super end
engine_name()
click to toggle source
# File lib/rails/generators/erb/component_generator.rb, line 16 def engine_name "erb" end
Private Instance Methods
data_attributes()
click to toggle source
# File lib/rails/generators/erb/component_generator.rb, line 26 def data_attributes if options["stimulus"] " data-controller=\"#{stimulus_controller}\"" end end