Sha256: 08a42eed100123cae5b0c9bc663e65989694586f4390dc0dfd7f9ea8f8366923
Contents?: true
Size: 288 Bytes
Versions: 1
Compression:
Stored size: 288 Bytes
Contents
require "yaml" module Notifaction class Cfg attr_reader :hooks, :conf # # @since 0.4.0 def initialize conf = YAML.load(File.open(Dir.home + "/.notifaction.yml")) @hooks = conf["hooks"] || [] @conf = conf["config"] || {} nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notifaction-0.4.1 | lib/notifaction/config.rb |