Class: Dhall::ExpressionResolver::ImportAsLocationResolver

Inherits:
Dhall::ExpressionResolver show all
Defined in:
lib/dhall/resolve.rb

Instance Method Summary collapse

Methods inherited from Dhall::ExpressionResolver

for, #initialize, register_for

Constructor Details

This class inherits a constructor from Dhall::ExpressionResolver

Instance Method Details

#resolve(resolver:, relative_to:) ⇒ Object



423
424
425
426
427
# File 'lib/dhall/resolve.rb', line 423

def resolve(resolver:, relative_to:)
	Promise.resolve(nil).then do
		@expr.real_path(relative_to).location
	end
end