Sha256: 84d0ba2e88b699d4bc3a0af3acb148650fbe4061f051fd9e0632842bf678d0bc
Contents?: true
Size: 304 Bytes
Versions: 5
Compression:
Stored size: 304 Bytes
Contents
# frozen_string_literal: true module Confset module Sources class HashSource attr_accessor :hash def initialize(hash) @hash = hash end # returns hash that was passed in to initialize def load hash.is_a?(Hash) ? hash : {} end end end end
Version data entries
5 entries across 5 versions & 1 rubygems