module Gooddata::Bricks::Utils
Public Instance Methods
returning(value, &block)
click to toggle source
# File lib/gooddata/bricks/utils.rb, line 3 def returning(value, &block) fail "Block was not provided" if block.nil? return_val = value block.call(value) return_val end