Module: Gemmy::Patches::ExceptionPatch::ClassMethods::Raised

Defined in:
lib/gemmy/patches/exception_patch.rb

Class Method Summary collapse

Class Method Details

.raised?Boolean

facets does an exception raise an error?

Returns:

  • (Boolean)


8
9
10
11
12
13
14
15
# File 'lib/gemmy/patches/exception_patch.rb', line 8

def self.raised? #:yeild:
  begin
    yield
    false
  rescue self
    true
  end
end