Class: Dhall::Import::RelativeToHomePath
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
1529 1530 1531 1532 1533 1534 1535 |
# File 'lib/dhall/ast.rb', line 1529 def chain_onto(relative_to) if relative_to.is_a?(URI) raise ImportBannedException, "remote import cannot import #{self}" end self end |
#pathname ⇒ Object
1525 1526 1527 |
# File 'lib/dhall/ast.rb', line 1525 def pathname Pathname.new("~").join(*@path) end |