Class: OpenapiRuby::Generators::ComponentGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/openapi_ruby/component/component_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_component_fileObject



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