Class: Phlex::Generators::ComponentGenerator
- Inherits:
-
BaseGenerator
- Object
- Rails::Generators::NamedBase
- BaseGenerator
- Phlex::Generators::ComponentGenerator
- Defined in:
- lib/generators/phlex/component/component_generator.rb
Instance Method Summary collapse
Methods inherited from BaseGenerator
Instance Method Details
#create_component ⇒ Object
9 10 11 12 |
# File 'lib/generators/phlex/component/component_generator.rb', line 9 def create_component @component_path = File.join("app", "components", class_path, "#{file_name}.rb") template "component.rb.erb", File.join(destination_root, @component_path) end |