kit-organizer edge

Method module
Kit::Organizer::Services::Callable::Method
View Source

Allows delayed generation of a callable in case of forward declaration.


Link to this section Summary ⚠️ Private APIs are currently hidden.

Used instance mixins: Contract::Mixin

Link to this section Class methods 1

🗒 Notes:
  • The expected format is `[:method, 'ModuleName', 'method_name']`. `ModuleName` can be a reference, string or symbol. `method_name` can be a string or symbol.

Examples:

Generating a callable from a tupple of ModuleName && method_name

resolve(args: [:'AuthenticationModule', 'sign_in']) => Proc(AuthenticationModule#sign_in)
resolve(args: ['AuthenticationModule', 'sign_in']) => Proc(AuthenticationModule#sign_in)
resolve(args: [AuthenticationModule, :sign_in]) => Proc(AuthenticationModule#sign_in)