Class: Dhall::Import::RelativeToHomePath
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 ⇒ Object
1306 1307 1308 1309 1310 1311 1312 |
# File 'lib/dhall/ast.rb', line 1306 def chain_onto(*) if relative_to.is_a?(URI) raise ImportBannedException, "remote import cannot import #{self}" end self end |
#pathname ⇒ Object
1302 1303 1304 |
# File 'lib/dhall/ast.rb', line 1302 def pathname Pathname.new("~").join(*@path) end |