Module: Uses::Method

Extended by:
ActiveSupport::Concern
Defined in:
lib/uses/method.rb

Overview

Provides a very basic mechanism for dependency management between classes in your service layer. This is done via the method ‘uses`.

The simplest use of this module is to create a base class for all classes in your service layer:

# app/services/application_service.rb
class ApplicationService
  include Uses::Method
end

Then, all services inherit from this and have access to the uses method.

Note that any class or method without RubyDoc should be treated as private/internal, and you should not depend on.

Instance Method Summary collapse

Instance Method Details

#__uses_dependent_instancesObject



83
84
85
# File 'lib/uses/method.rb', line 83

def __uses_dependent_instances
  @__uses_dependent_instances ||= {}
end