Module: Dry::Protocol

Defined in:
lib/dry/behaviour.rb,
lib/dry/errors/not_implemented.rb

Defined Under Namespace

Classes: NotImplemented

Class Method Summary collapse

Class Method Details

.defimpl(protocol = nil, target: nil, delegate: [], map: {}, &λ) ⇒ Object

rubocop:disable Style/AsciiIdentifiers



13
14
15
# File 'lib/dry/behaviour.rb', line 13

def defimpl(protocol = nil, target: nil, delegate: [], map: {}, &

.included(base) ⇒ Object



7
8
9
# File 'lib/dry/behaviour.rb', line 7

def self.included(base)
  base.singleton_class.prepend(Dry::BlackTie)
end