Sha256: a1e8804b42be8f027b77827cdeb21e6e44f9587314e038661ff1eca06b6c9c14

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

require "yaml"

module Notifaction
  class Cfg
    attr_reader :hooks, :conf

    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.0 lib/notifaction/config.rb