Sha256: 6ad00a2149f5bef263b941fe663605fde40cfd39bfca86d82ba587bfaf1d7f08

Contents?: true

Size: 239 Bytes

Versions: 3

Compression:

Stored size: 239 Bytes

Contents

# frozen_string_literal: true

module Dotcrypt::Dhall
  using Dotcrypt::Dhall::AsHash

  class << self
    def load(dhall)
      Dhall.load(dhall).sync.as_hash
    end

    def load_from(file)
      load(File.read(file))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dotcrypt-0.1.3 lib/dotcrypt/dhall.rb
dotcrypt-0.1.2 lib/dotcrypt/dhall.rb
dotcrypt-0.1.0 lib/dotcrypt/dhall.rb