Module: Gorgon::Configuration::FileLoader

Defined in:
lib/gorgon/configuration.rb

Class Method Summary collapse

Class Method Details

.exists?(filename) ⇒ Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/gorgon/configuration.rb', line 43

def self.exists?(filename)
  File.exists?(filename)
end

.parse(filename) ⇒ Object



38
39
40
41
# File 'lib/gorgon/configuration.rb', line 38

def self.parse(filename)
  file = File.new(filename, "r")
  Yajl::Parser.new(symbolize_keys: true).parse(file)
end