Class: ActionComponent::Configuration

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

Overview

Configuration class for ActionComponent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



16
17
18
19
20
# File 'lib/actioncomponent.rb', line 16

def initialize
  @components_path = 'app/components'
  @template_file_name = 'template'
  @view_model_file_name = 'view_model'
end

Instance Attribute Details

#components_pathString

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

Returns:

  • (String)

    the current value of components_path



11
12
13
# File 'lib/actioncomponent.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/actioncomponent.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/actioncomponent.rb', line 14

def view_model_file_name
  @view_model_file_name
end