Module: Inflect
- Defined in:
- lib/inflect.rb,
lib/inflect/i18n.rb,
lib/inflect/loader.rb,
lib/inflect/request.rb,
lib/inflect/version.rb,
lib/inflect/director.rb,
lib/inflect/response.rb,
lib/inflect/inflector.rb,
lib/inflect/responsive.rb,
lib/inflect/configuration.rb,
lib/inflect/abstract_service.rb,
lib/inflect/service_provider.rb,
lib/inflect/service_provider_methods.rb
Overview
Module thats starts the service loading. It is used as facade to handle queried words.
Defined Under Namespace
Modules: I18n, Inflector, Loader, Responsive, ServiceProviderMethods Classes: AbstractService, Configuration, Director, Request, Response, ServiceProvider
Constant Summary collapse
- VERSION =
"0.5.2"
Class Attribute Summary collapse
-
.configuration ⇒ Inflect::Configuration
readonly
Configuration instance reference.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Method that allows configuration via block.
-
.handle(words) ⇒ nil, Inflect::Response
Entry point to handle queried words.
- .reload ⇒ Object
Class Attribute Details
.configuration ⇒ Inflect::Configuration (readonly)
Configuration instance reference.
8 9 10 |
# File 'lib/inflect/configuration.rb', line 8 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Method that allows configuration via block.
13 14 15 16 |
# File 'lib/inflect/configuration.rb', line 13 def self.configure yield configuration if block_given? reload if configuration.services_path_changed end |
.handle(words) ⇒ nil, Inflect::Response
Entry point to handle queried words.
12 13 14 |
# File 'lib/inflect.rb', line 12 def handle(words) director.handle(words) end |
.reload ⇒ Object
16 17 18 |
# File 'lib/inflect.rb', line 16 def reload director.reload end |