Module: Superseeder::Formats::Yaml

Defined in:
lib/superseeder/formats/yaml.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extensionsObject



5
6
7
# File 'lib/superseeder/formats/yaml.rb', line 5

def self.extensions
  %w(.yml .yaml)
end

Instance Method Details

#__process(path, *args) {|f, opts| ... } ⇒ Object

Yields:

  • (f, opts)


9
10
11
12
13
14
15
# File 'lib/superseeder/formats/yaml.rb', line 9

def __process(path, *args)
  require 'yaml'
  opts = args.extract_options!

  f = YAML.load_file(path)
  yield f, opts
end