Class: Erb::Generators::ComponentGenerator
- Inherits:
-
Base
- Object
- Base
- Erb::Generators::ComponentGenerator
- Defined in:
- lib/rails/generators/erb/component_generator.rb
Direct Known Subclasses
Haml::Generators::ComponentGenerator, Slim::Generators::ComponentGenerator
Instance Method Summary collapse
Instance Method Details
#copy_view_file ⇒ Object
11 12 13 |
# File 'lib/rails/generators/erb/component_generator.rb', line 11 def copy_view_file template "component.html.erb", destination end |