Class: OpenapiRuby::Generators::ComponentGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- OpenapiRuby::Generators::ComponentGenerator
- Defined in:
- lib/generators/openapi_ruby/component/component_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_component_file ⇒ Object
13 14 15 16 |
# File 'lib/generators/openapi_ruby/component/component_generator.rb', line 13 def create_component_file template "component.rb.tt", File.join("app/api_components", component_type, "#{file_name}.rb") end |