Class: Inflect::ServiceProvider
- Inherits:
-
Object
- Object
- Inflect::ServiceProvider
- Includes:
- Singleton
- Defined in:
- lib/inflect/service_provider.rb
Overview
The class in charge of providing common access to available services across all the application.
Instance Attribute Summary collapse
-
#services ⇒ Object
readonly
Access available services.
Instance Method Summary collapse
-
#initialize ⇒ ServiceProvider
constructor
Load all services on provider instantiation.
- #reload ⇒ Object
Constructor Details
#initialize ⇒ ServiceProvider
Load all services on provider instantiation.
15 16 17 |
# File 'lib/inflect/service_provider.rb', line 15 def initialize @services = load end |
Instance Attribute Details
#services ⇒ Object (readonly)
Access available services.
12 13 14 |
# File 'lib/inflect/service_provider.rb', line 12 def services @services end |
Instance Method Details
#reload ⇒ Object
19 20 21 |
# File 'lib/inflect/service_provider.rb', line 19 def reload @services = load end |