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.



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

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



10
11
12
# File 'lib/actioncomponent.rb', line 10

def components_path
  @components_path
end

#template_file_namevoid

Returns the value of attribute template_file_name.



12
13
14
# File 'lib/actioncomponent.rb', line 12

def template_file_name
  @template_file_name
end

#view_model_file_namevoid

Returns the value of attribute view_model_file_name.



13
14
15
# File 'lib/actioncomponent.rb', line 13

def view_model_file_name
  @view_model_file_name
end