Class: Dhall::Import::AbsolutePath
- Inherits:
-
Path
- Object
- Path
- Dhall::Import::AbsolutePath
show all
- Defined in:
- lib/dhall/ast.rb
Instance Method Summary
collapse
Methods inherited from Path
#as_json, #canonical, from_string, #initialize, #origin, #resolve, #to_s, #with
Instance Method Details
#chain_onto(relative_to) ⇒ Object
1268
1269
1270
1271
1272
1273
1274
|
# File 'lib/dhall/ast.rb', line 1268
def chain_onto(relative_to)
if relative_to.is_a?(URI)
raise ImportBannedException, "remote import cannot import #{self}"
end
self
end
|
#pathname ⇒ Object
1260
1261
1262
|
# File 'lib/dhall/ast.rb', line 1260
def pathname
Pathname.new("/").join(*path)
end
|
#to_uri(scheme, authority) ⇒ Object
1264
1265
1266
|
# File 'lib/dhall/ast.rb', line 1264
def to_uri(scheme, authority)
scheme.new(nil, authority, *path, nil)
end
|