Sha256: 822626e8b1fc611198cb17c2929b0b32e534d1e058954a40498fef36a32afc54

Contents?: true

Size: 299 Bytes

Versions: 18

Compression:

Stored size: 299 Bytes

Contents

require 'rake'

module Cxxproject
  module Utils
    def self.optional_package(block1, block2)
      begin
        block1.call
      rescue LoadError => e
        if RakeFileUtils.verbose == true
          puts e
        end
        block2.call if block2
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cxxproject-0.5.76 lib/cxxproject/utils/optional.rb
cxxproject-0.5.75 lib/cxxproject/utils/optional.rb
cxxproject-0.5.74 lib/cxxproject/utils/optional.rb
cxxproject-0.5.73 lib/cxxproject/utils/optional.rb
cxxproject-0.5.72 lib/cxxproject/utils/optional.rb
cxxproject-0.5.71 lib/cxxproject/utils/optional.rb
cxxproject-0.5.70 lib/cxxproject/utils/optional.rb
cxxproject-0.5.69 lib/cxxproject/utils/optional.rb
cxxproject-0.5.68 lib/cxxproject/utils/optional.rb
cxxproject-0.5.67 lib/cxxproject/utils/optional.rb
cxxproject-0.5.66 lib/cxxproject/utils/optional.rb
cxxproject-0.5.65 lib/cxxproject/utils/optional.rb
cxxproject-0.5.64 lib/cxxproject/utils/optional.rb
cxxproject-0.5.63 lib/cxxproject/utils/optional.rb
cxxproject-0.5.62 lib/cxxproject/utils/optional.rb
cxxproject-0.5.61 lib/cxxproject/utils/optional.rb
cxxproject-0.5.60 lib/cxxproject/utils/optional.rb
cxxproject-0.5.59 lib/cxxproject/utils/optional.rb