Class: ViewComponent::Generators::ComponentGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ViewComponent::Generators::ComponentGenerator
- Includes:
- AbstractGenerator
- Defined in:
- lib/generators/view_component/component/component_generator.rb
Instance Method Summary collapse
Methods included from AbstractGenerator
Instance Method Details
#create_component_file ⇒ Object
25 26 27 |
# File 'lib/generators/view_component/component/component_generator.rb', line 25 def create_component_file template "component.rb", File.join(component_path, class_path, "#{file_name}#{[:skip_suffix] ? "" : "_component"}.rb") end |