Class: Dhall::Import::RelativeToHomePath

Inherits:
Path
  • Object
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

Constructor Details

This class inherits a constructor from Dhall::Import::Path

Instance Method Details

#chain_ontoObject



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

#pathnameObject



1302
1303
1304
# File 'lib/dhall/ast.rb', line 1302

def pathname
  Pathname.new("~").join(*@path)
end