Sha256: 02202bc49fb1663e5fc2ae6a5c6ced7b59572e5d7bc6143bd4d410429cbeaaa2
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
# frozen_string_literal: true require 'yaml' module GistUpdater class Config def initialize(file) @file = file end def each return enum_for(:each) unless block_given? config.each do |gist_id, file_path| yield(gist_id, file_path) end end private attr_reader :file def config @config ||= YAML.load(IO.read(file)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gist_updater-0.2.0 | lib/gist_updater/config.rb |