Sha256: 168eb770d6795aae4b1581fcadd3e63f920f75a295fee3b510ad2528bc4c3282

Contents?: true

Size: 253 Bytes

Versions: 7

Compression:

Stored size: 253 Bytes

Contents

require "ostruct"

module Reparty
  class Config < ::OpenStruct
    attr_reader :reports

    def initialize
      @reports = []
      super
    end

    def add_report(report, *args, &block)
      @reports << report.new(*args, &block)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reparty-0.3.2 lib/reparty/config.rb
reparty-0.3.1 lib/reparty/config.rb
reparty-0.2.1 lib/reparty/config.rb
reparty-0.2.0 lib/reparty/config.rb
reparty-0.1.3 lib/reparty/config.rb
reparty-0.1.2 lib/reparty/config.rb
reparty-0.1.0 lib/reparty/config.rb