Class: TypedEnums::Configuration
- Inherits:
-
Object
- Object
- TypedEnums::Configuration
- Defined in:
- lib/typed_enums/configuration.rb
Instance Attribute Summary collapse
-
#auto_generate_in_development ⇒ Object
Returns the value of attribute auto_generate_in_development.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#root_model_class ⇒ Object
Returns the value of attribute root_model_class.
-
#watch_models_in_development ⇒ Object
Returns the value of attribute watch_models_in_development.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/typed_enums/configuration.rb', line 7 def initialize @output_dir = "app/javascript/lib" @root_model_class = "ApplicationRecord" @auto_generate_in_development = true @watch_models_in_development = true end |
Instance Attribute Details
#auto_generate_in_development ⇒ Object
Returns the value of attribute auto_generate_in_development.
5 6 7 |
# File 'lib/typed_enums/configuration.rb', line 5 def auto_generate_in_development @auto_generate_in_development end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
5 6 7 |
# File 'lib/typed_enums/configuration.rb', line 5 def output_dir @output_dir end |
#root_model_class ⇒ Object
Returns the value of attribute root_model_class.
5 6 7 |
# File 'lib/typed_enums/configuration.rb', line 5 def root_model_class @root_model_class end |
#watch_models_in_development ⇒ Object
Returns the value of attribute watch_models_in_development.
5 6 7 |
# File 'lib/typed_enums/configuration.rb', line 5 def watch_models_in_development @watch_models_in_development end |