Module: Shoes::Common::SafelyEvaluate

Included in:
Changeable, UIElement, InternalApp, Link, Swt::ClickListener, Swt::KeyListener, Swt::MouseMoveListener
Defined in:
shoes-core/lib/shoes/common/safely_evaluate.rb

Instance Method Summary collapse

Instance Method Details

#safely_evaluate(*args) ⇒ Object



6
7
8
9
10
11
# File 'shoes-core/lib/shoes/common/safely_evaluate.rb', line 6

def safely_evaluate(*args)
  yield(*args) if block_given?
rescue => e
  Shoes.logger.error(e.message)
  raise e if Shoes.configuration.fail_fast
end