Class: RailsAppGenerator::RagConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_app_generator/configuration/rag_configuration.rb

Overview

Structure for storing Rails Application Generator configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRagConfiguration

Returns a new instance of RagConfiguration.



10
11
12
# File 'lib/rails_app_generator/configuration/rag_configuration.rb', line 10

def initialize
  @options = []
end

Instance Attribute Details

#optionsObject (readonly)

include KLog::Logging



8
9
10
# File 'lib/rails_app_generator/configuration/rag_configuration.rb', line 8

def options
  @options
end

Instance Method Details

#add_option(name, **args) ⇒ Object



14
15
16
# File 'lib/rails_app_generator/configuration/rag_configuration.rb', line 14

def add_option(name, **args)
  @options << RailsAppGenerator::BuildOption.new(name, **args)
end