Module: Gooddata::Bricks::Utils
- Included in:
- Middleware
- Defined in:
- lib/gooddata/bricks/utils.rb
Instance Method Summary collapse
Instance Method Details
#returning(value, &block) ⇒ Object
3 4 5 6 7 8 |
# 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 |