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(relative_to) ⇒ Object
1336 1337 1338 1339 1340 1341 1342 |
# File 'lib/dhall/ast.rb', line 1336 def chain_onto(relative_to) if relative_to.is_a?(URI) raise ImportBannedException, "remote import cannot import #{self}" end self end |
#pathname ⇒ Object
1332 1333 1334 |
# File 'lib/dhall/ast.rb', line 1332 def pathname Pathname.new("~").join(*@path) end |