Class: ComponentParty::Configuration
- Inherits:
-
Object
- Object
- ComponentParty::Configuration
- Defined in:
- lib/component_party.rb
Overview
Configuration class for ComponentParty
Instance Attribute Summary collapse
-
#component_folder_for_actions ⇒ void
Returns the value of attribute component_folder_for_actions.
-
#components_path ⇒ String
Components folder path (defaults to 'app/components').
-
#template_file_name ⇒ void
Returns the value of attribute template_file_name.
-
#view_model_file_name ⇒ void
Returns the value of attribute view_model_file_name.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 |
# File 'lib/component_party.rb', line 17 def initialize @components_path = 'app/components' @template_file_name = 'template' @view_model_file_name = 'view_model' @component_folder_for_actions = 'pages' end |
Instance Attribute Details
#component_folder_for_actions ⇒ void
Returns the value of attribute component_folder_for_actions.
15 16 17 |
# File 'lib/component_party.rb', line 15 def component_folder_for_actions @component_folder_for_actions end |
#components_path ⇒ String
Components folder path (defaults to 'app/components')
11 12 13 |
# File 'lib/component_party.rb', line 11 def components_path @components_path end |
#template_file_name ⇒ void
Returns the value of attribute template_file_name.
13 14 15 |
# File 'lib/component_party.rb', line 13 def template_file_name @template_file_name end |
#view_model_file_name ⇒ void
Returns the value of attribute view_model_file_name.
14 15 16 |
# File 'lib/component_party.rb', line 14 def view_model_file_name @view_model_file_name end |