Class: SleepingKingStudios::Docs::Commands::Generators::ReferenceGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/sleeping_king_studios/docs/commands/generators/reference_generator.rb

Overview

Generator for writing reference files.

Instance Attribute Summary

Attributes inherited from Base

#docs_path, #options

Instance Method Summary collapse

Methods inherited from Base

#dry_run?, #force?, #initialize, #template_path, #verbose?, #version

Constructor Details

This class inherits a constructor from SleepingKingStudios::Docs::Commands::Generators::Base

Instance Method Details

#file_path(data_object: ) ⇒ String

Determines the generated file path for the given data object.

Parameters:

Returns:

  • (String)

    the qualified path to the generated file.



16
17
18
# File 'lib/sleeping_king_studios/docs/commands/generators/reference_generator.rb', line 16

def file_path(data_object:, data_type: nil) # rubocop:disable Lint/UnusedMethodArgument
  File.join(dir_path, "#{data_object.data_path}.md")
end