Sha256: d3830179c5e5a2a5ed4c08464ab7719b6e31b62fc124fe57097118cae1d9e5c6

Contents?: true

Size: 176 Bytes

Versions: 10

Compression:

Stored size: 176 Bytes

Contents

class Exception

  # Does a block raise an a given +exception+.
  #
  def self.raised? #:yeild:
    begin
      yield
      false
    rescue self
      true
    end
  end

end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/exception/raised.rb
facets-3.1.0 lib/core/facets/exception/raised.rb
facets-3.0.0 lib/core/facets/exception/raised.rb
facets-2.9.3 lib/core/facets/exception/raised.rb
facets-2.9.2 lib/core/facets/exception/raised.rb
facets-2.9.2 src/core/facets/exception/raised.rb
facets-2.9.1 lib/core/facets/exception/raised.rb
facets-2.9.0 lib/core/facets/exception/raised.rb
facets-2.9.0.pre.2 lib/core/facets/exception/raised.rb
facets-2.9.0.pre.1 lib/core/facets/exception/raised.rb