Class: ComponentParty::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/component_party.rb

Overview

Configuration class for ComponentParty

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_actionsvoid

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_pathString

Components folder path (defaults to 'app/components')

Returns:

  • (String)

    the current value of components_path



11
12
13
# File 'lib/component_party.rb', line 11

def components_path
  @components_path
end

#template_file_namevoid

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_namevoid

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