Module: Middleman::Versions::FileHandler

Defined in:
lib/middleman/versions/helpers/file_handler.rb

Class Method Summary collapse

Class Method Details

.load_file(path) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/middleman/versions/helpers/file_handler.rb', line 4

def self.load_file(path)
  case File.extname(path)
    when ".yml",".yaml"
      load_yaml_file path
    when ".json"
      load_json_file path
  end
end