Module: Calls

Defined in:
lib/calls.rb

Overview

Include this module to enable dry-initialization like a method object.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
# File 'lib/calls.rb', line 7

def self.included(base)
  base.extend Dry::Initializer
  base.extend ClassMethods
  base.send(:private_class_method, :new)
end