Sha256: a0cd8b923b18904c6941fd797c47a7975baf93e94e4c27eeec939b62f6d55e9c

Contents?: true

Size: 88 Bytes

Versions: 11

Compression:

Stored size: 88 Bytes

Contents

class Proc
  def call_safely
    self.call
  rescue
    yield if block_given?
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
subtle-1.2.0 lib/subtle/safety_proc.rb
subtle-1.1.1 lib/subtle/safety_proc.rb
subtle-1.1.0 lib/subtle/safety_proc.rb
subtle-1.0.0 lib/subtle/safety_proc.rb
subtle-0.3.8 lib/subtle/safety_proc.rb
subtle-0.3.6 lib/subtle/safety_proc.rb
subtle-0.3.5 lib/subtle/safety_proc.rb
subtle-0.3.4 lib/subtle/safety_proc.rb
smoke_monster-0.3.3 lib/smoke_monster/safety_proc.rb
smoke_monster-0.3.2 lib/smoke_monster/safety_proc.rb
smoke_monster-0.3.0 lib/smoke_monster/safety_proc.rb