Class: Inflect::Configuration

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

Overview

The class in charge of centralizing the application's configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


19
20
21
22
# File 'lib/inflect/configuration.rb', line 19

def initialize
  @services_path = File.join(__dir__, 'services')
  @locale_path   = File.join(File.dirname(__FILE__), 'locale/en.yml')
end

Instance Attribute Details

#locale_pathObject (readonly)

Returns the value of attribute locale_path


17
18
19
# File 'lib/inflect/configuration.rb', line 17

def locale_path
  @locale_path
end

#services_pathObject (readonly)

Returns the value of attribute services_path


17
18
19
# File 'lib/inflect/configuration.rb', line 17

def services_path
  @services_path
end