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, decode, from_string, #initialize, #location, #origin, #resolve, #to_s, #with

Constructor Details

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

Instance Method Details

#chain_onto(relative_to) ⇒ Object



1579
1580
1581
1582
1583
1584
1585
# File 'lib/dhall/ast.rb', line 1579

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

	self
end

#pathnameObject



1575
1576
1577
# File 'lib/dhall/ast.rb', line 1575

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