Method: Frameit::ConfigParser#load

Defined in:
frameit/lib/frameit/config_parser.rb

#load(path) ⇒ Object



7
8
9
10
11
12
# File 'frameit/lib/frameit/config_parser.rb', line 7

def load(path)
  return nil unless File.exist?(path) # we are okay with no config at all
  UI.verbose("Parsing config file '#{path}'")
  @path = path
  self.parse(File.read(path))
end