Sha256: 38dd7062d7feb36ca661dec5e24a041b92a16eae2d20fc0c15fd45274f9855c1

Contents?: true

Size: 208 Bytes

Versions: 9

Compression:

Stored size: 208 Bytes

Contents

module GoodData::Bricks
  module Utils

    def returning(value, &block)
      fail "Block was not provided" if block.nil? 
      return_val = value
      block.call(value)
      return_val
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gooddata-0.6.0.pre11 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre10 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre9 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre8 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre7 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre6 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre5 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre4 lib/gooddata/bricks/utils.rb
gooddata-0.6.0.pre3 lib/gooddata/bricks/utils.rb