Sha256: 6959884803bb5e93002b6421b0a92b4daaeec9f6a94c160f81310745e0704157

Contents?: true

Size: 451 Bytes

Versions: 8

Compression:

Stored size: 451 Bytes

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

module GoodData
  module Bricks
    module Utils
      def returning(value, &block)
        raise 'Block was not provided' if block.nil?
        return_val = value
        yield value
        return_val
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gooddata-bricks-0.8.0 lib/gooddata/bricks/utils.rb
gooddata-bricks-0.7.0 lib/gooddata/bricks/utils.rb
gooddata-bricks-0.6.0 lib/gooddata/bricks/utils.rb
gooddata-bricks-0.5.0 lib/gooddata/bricks/utils.rb
gooddata-bricks-0.4.0 lib/gooddata/bricks/utils.rb
gooddata-bricks-0.3.0 lib/gooddata/bricks/utils.rb
gooddata-bricks-0.2.0 lib/gooddata/bricks/utils.rb
gooddata-bricks-0.1.0 lib/gooddata/bricks/utils.rb