Sha256: 8b02dbac8c2ce9e623411a896923cf8c0ba3029d9de344a5d48fc7700b3636a8
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
require 'hashr' require 'yaml' module ApplePush class Configuration < Hashr # Load a configuration options from file # # path - Path yo YAML file # def self.load_file(path) path = File.expand_path(path) if !File.exists?(path) raise ArgumentError, "File \"#{path}\" does not exist." end data = YAML.load_file(path) Configuration.new(data) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apple_push-0.1.1 | lib/apple_push/configuration.rb |