Module: Inflect::ServiceProviderMethods::InstanceMethods

Defined in:
lib/inflect/service_provider_methods.rb

Instance Method Summary collapse

Instance Method Details

#service_providerObject

Provide the Service Provider as a virtual attribute.



12
13
14
# File 'lib/inflect/service_provider_methods.rb', line 12

def service_provider
  Inflect::ServiceProvider.instance
end

#servicesEnumerable[AbstractService]

Access available services through a virtual attribute.



18
19
20
# File 'lib/inflect/service_provider_methods.rb', line 18

def services
  service_provider.services
end