Class: Dhall::Resolvers::Default

Inherits:
Standard
  • Object
show all
Defined in:
lib/dhall/resolve.rb

Direct Known Subclasses

None

Instance Attribute Summary

Attributes inherited from Standard

#deadline

Instance Method Summary collapse

Methods inherited from Standard

#cache_fetch, #child, #finish!, #resolve_environment, #resolve_http, #resolve_https, #resolve_path, #with_deadline

Constructor Details

#initialize(path_reader: ReadPathSources, http_reader: ReadHttpSources, https_reader: http_reader, environment_reader: ReadEnvironmentSources, ipfs_public_gateway: URI("https://cloudflare-ipfs.com"), cache: RamCache.new, max_depth: 50) ⇒ Default

Returns a new instance of Default.



350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
# File 'lib/dhall/resolve.rb', line 350

def initialize(
	path_reader: ReadPathSources,
	http_reader: ReadHttpSources,
	https_reader: http_reader,
	environment_reader: ReadEnvironmentSources,
	ipfs_public_gateway: URI("https://cloudflare-ipfs.com"),
	cache: RamCache.new,
	max_depth: 50
)
	super(
		path_reader: ReadPathAndIPFSSources.new(
			path_reader:    path_reader,
			http_reader:    http_reader,
			https_reader:   https_reader,
			public_gateway: ipfs_public_gateway
		),
		http_reader: http_reader, https_reader: https_reader, cache: cache,
		environment_reader: environment_reader, max_depth: max_depth
	)
end