Method: Typingpool::Config.file

Defined in:
lib/typingpool/config.rb

.file(path = File.expand_path(default_file)) ⇒ Object

Constructor.

Params

path

Fully expanded path to YAML file.

Returns

Config instance.



117
118
119
# File 'lib/typingpool/config.rb', line 117

def file(path=File.expand_path(default_file))
  Root.new(YAML.load(IO.read((path))))
end