module Inflect

Module thats starts the service loading. It is used as facade to handle queried words.

Constants

VERSION

Attributes

configuration[R]

Public Class Methods

configure() { |configuration| ... } click to toggle source

Method that allows configuration via block.

# File lib/inflect/configuration.rb, line 13
def self.configure
  yield configuration if block_given?
  reload if configuration.services_path_changed
end
handle(words) click to toggle source

Entry point to handle queried words. @return [nil, Inflect::Response]

# File lib/inflect.rb, line 12
def handle(words)
  director.handle(words)
end
reload() click to toggle source
# File lib/inflect.rb, line 16
def reload
  director.reload
end

Private Class Methods

director() click to toggle source

Method that returns the Director instance reference. @return [Inflect::Director]

# File lib/inflect.rb, line 24
def director
  @@director ||= Director.new
end