Class: Dhall::Import::RelativeToHomePath

Inherits:
Path
  • Object
show all
Defined in:
lib/dhall/ast.rb

Instance Method Summary collapse

Methods inherited from Path

#as_json, #canonical, from_string, #initialize, #origin, #resolve, #to_s, #with

Constructor Details

This class inherits a constructor from Dhall::Import::Path

Instance Method Details

#chain_onto(relative_to) ⇒ Object



1421
1422
1423
1424
1425
1426
1427
# File 'lib/dhall/ast.rb', line 1421

def chain_onto(relative_to)
	if relative_to.is_a?(URI)
		raise ImportBannedException, "remote import cannot import #{self}"
	end

	self
end

#pathnameObject



1417
1418
1419
# File 'lib/dhall/ast.rb', line 1417

def pathname
	Pathname.new("~").join(*@path)
end