Sha256: da6085e43428601f2e743c4c0f0d4e6ac8f873e59051b46d2c52735d5b57d7cb
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true class Zilla::Loaders::Loader class LoaderError < Zilla::Error; end attr_reader :input, :faraday_config, :faraday_config_block def initialize(input, faraday_config: {}, faraday_config_block: nil) @input = input @faraday_config = faraday_config @faraday_config_block = faraday_config_block || ->(_f, _target) {} end def load Oj.load(load_string) rescue StandardError => e raise LoaderError, e.message end private def load_string = raise NotImplementedError end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zilla-0.1.5 | lib/zilla/loaders/loader.rb |
zilla-0.1.4 | lib/zilla/loaders/loader.rb |