Sha256: 4dde82789ae0351ee122c5b5abd9078e94ed9cdab4dc9cf08564e9eaa9e5b086

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

require 'ostruct'
require 'albacore/support/openstruct'

module Configuration
  module NChurn
    include Albacore::Configuration

    def nchurn
      @nchurnconfig ||= OpenStruct.new.extend(OpenStructToHash)
      yield(@nchurnconfig) if block_given?
      @nchurnconfig
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
albacore-0.2.5 lib/albacore/config/nchurnconfig.rb
albacore-0.2.4 lib/albacore/config/nchurnconfig.rb
albacore-0.2.3 lib/albacore/config/nchurnconfig.rb