Module: Dhall::Parser::ImportHashed

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#value(import_type) ⇒ Object



518
519
520
521
522
# File 'lib/dhall/parser.rb', line 518

def value(import_type)
  integrity_check = capture(:hash)&.value
  path = capture(:import_type).value
  Dhall::Import.new(integrity_check, import_type, path)
end