Class: Inflect::Configuration
- Inherits:
-
Object
- Object
- Inflect::Configuration
- Defined in:
- lib/inflect/configuration.rb
Overview
The class in charge of centralizing the application’s configuration.
Instance Attribute Summary collapse
-
#locale_path ⇒ Object
readonly
Returns the value of attribute locale_path.
-
#services_path ⇒ Object
readonly
Returns the value of attribute services_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 22 |
# File 'lib/inflect/configuration.rb', line 19 def initialize @services_path = 'services' @locale_path = File.join(File.dirname(__FILE__), 'locale/en.yml') end |
Instance Attribute Details
#locale_path ⇒ Object (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_path ⇒ Object (readonly)
Returns the value of attribute services_path.
17 18 19 |
# File 'lib/inflect/configuration.rb', line 17 def services_path @services_path end |