Module: Containable

Defined in:
lib/containable.rb,
lib/containable/test.rb,
lib/containable/builder.rb,
lib/containable/register.rb,
lib/containable/resolver.rb

Overview

Main namespace.

Defined Under Namespace

Modules: Test Classes: Builder, Register, Resolver

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](register: Register, resolver: Resolver) ⇒ Object



14
# File 'lib/containable.rb', line 14

def self.[](register: Register, resolver: Resolver) = Builder.new(register:, resolver:)

.extended(descendant) ⇒ Object



9
10
11
12
# File 'lib/containable.rb', line 9

def self.extended descendant
  super
  descendant.extend Builder.new
end

Instance Method Details

#restoreObject



22
# File 'lib/containable.rb', line 22

def restore = false

#stub!Object



16
17
18
19
20
# File 'lib/containable.rb', line 16

def stub!(**)
  require "containable/test"
  extend Test
  stub(**)
end