Class: Dhall::Import::Expression

Inherits:
Object
  • Object
show all
Defined in:
lib/dhall/ast.rb

Class Method Summary collapse

Class Method Details

.call(import_value, deadline: Util::NoDeadline.new) ⇒ Object



1515
1516
1517
1518
1519
# File 'lib/dhall/ast.rb', line 1515

def self.call(import_value, deadline: Util::NoDeadline.new)
  return import_value if import_value.is_a?(Dhall::Expression)

  Dhall.load_raw(import_value, timeout: deadline.timeout)
end