Class: Wireless::Fetcher

Inherits:
Object
  • Object
show all
Includes:
Fetch
Defined in:
lib/wireless/fetcher.rb

Overview

The object passed to the factory (‘on`) or singleton (`once`) block: a cut-down version of Wireless::Registry which only provides read access (via #fetch or its #[] alias) to the underlying dependency store

Instance Method Summary collapse

Methods included from Fetch

#fetch

Constructor Details

#initialize(registry:, seen:) ⇒ Fetcher

Returns a new instance of Fetcher.



10
11
12
13
# File 'lib/wireless/fetcher.rb', line 10

def initialize(registry:, seen:)
  @registry = registry
  @seen = seen
end