Sha256: 347200e6e3a22f74ae949eb47d971e6572e8e3123d59b95bb87236e2f75aa890

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

# coding: utf-8

module ThinReports
  # @yield [config]
  # @yieldparam [ThinReports::Configuration] config
  def self.configure(&block)
    block_exec_on(self.config, &block)
  end
  
  # @return [ThinReports::Configuration]
  def self.config
    @config ||= ThinReports::Configuration.new
  end
  
  class Configuration
    # @return [ThinReports::Generator::Configuration]
    def generator
      @generator ||= ThinReports::Generator::Configuration.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/config.rb
thinreports-0.7.6 lib/thinreports/config.rb
thinreports-0.7.5 lib/thinreports/config.rb
thinreports-0.7.0 lib/thinreports/config.rb