Sha256: 94bdc34d5c506e599ab6b7d9e21942e91681e8ceb300404bdefd82df83d1f43f

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

require "ostruct"
require "albacore/support/openstruct"

module Configuration
  module NDepend
    include Albacore::Configuration

    def self.ndependconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(NDepend)
    end

    def ndepend
      config ||= NDepend.ndependconfig
      yield(config) if block_given?
      config
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/config/ndependconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/ndependconfig.rb