class ComponentGenerator
Public Instance Methods
create_component()
click to toggle source
# File lib/generators/component_generator.rb, line 6 def create_component copy_file "application_component.rb", "app/components/application_component.rb" template "component.rb", "app/components/#{file_name}_component.rb" create_file "app/templates/#{file_name}_component.mustache" end