class Inflect::Configuration

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

Attributes

default_path[RW]

Default service path

locale_path[RW]

Location of the locale file.

services_path[RW]

Location of the services directory.

Public Class Methods

new() click to toggle source
# File lib/inflect/configuration.rb, line 31
def initialize
  @default_path = File.join('lib', 'services')
  @services_path = @services_path || default_path
  @locale_path   = File.join(File.dirname(__FILE__), 'locale/en.yml')
end

Public Instance Methods

services_path_changed() click to toggle source
# File lib/inflect/configuration.rb, line 37
def services_path_changed
  !services_path.eql? default_path
end