Sha256: b112f2647ca3c59f134d72e3d6101758b80796b98d5b74ed455144b579ffc509

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

require "reparty/version"

require "reparty/config"
require "reparty/email"

require "reparty/report"
require "reparty/report/active_record"
require "reparty/report/sendgrid"

require "reparty/engine"

module Reparty
  class << self
    def root
      Pathname.new(File.expand_path('../..', __FILE__))
    end

    attr_accessor :configuration
    attr_reader :reports

    def config
      self.configuration = Config.new

      yield(configuration)

      @reports = self.configuration.reports
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reparty-0.3.2 lib/reparty.rb
reparty-0.3.1 lib/reparty.rb