module Streetlib::Vault

Constants

VERSION

Public Class Methods

load(path:) click to toggle source
# File lib/streetlib/vault.rb, line 11
def self.load(path:)
  result = Loader.load(path: path)
  if result.error?
    raise Error.new("Can't load file: #{path}. [code:#{result.code}]")
  end
  result.data.content
end