Class: Gem::MiniMirror::Resources::Yaml

Inherits:
BaseFile
  • Object
show all
Defined in:
lib/rubygems/mini_mirror/resources/yaml.rb

Instance Method Summary collapse

Methods inherited from BaseFile

#initialize, #tag

Methods included from Gem::MiniMirror::Resource

included, #tag

Constructor Details

This class inherits a constructor from Gem::MiniMirror::Resources::BaseFile

Instance Method Details

#load!Object



8
9
10
11
12
13
14
15
16
# File 'lib/rubygems/mini_mirror/resources/yaml.rb', line 8

def load!
  super
  config = YAML.load_file(@path)
  config.each do |instructs|
    instructs.each do |k, args|
      send(k, *args)
    end
  end
end