Sha256: c2d12c2c5faa430fec0e70a946cbca46384ceb87e35a7fb9619f936e0c4ee48b
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 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 Configuration.new(YAML.load_file(path)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apple_push-0.1.2 | lib/apple_push/configuration.rb |