Class: Dhall::Import::RelativeToParentPath
- 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
1517 1518 1519 1520 1521 |
# File 'lib/dhall/ast.rb', line 1517 def chain_onto(relative_to) relative_to.with( path: relative_to.path[0..-2] + [".."] + path ) end |
#pathname ⇒ Object
1513 1514 1515 |
# File 'lib/dhall/ast.rb', line 1513 def pathname Pathname.new("..").join(*path) end |