Sha256: 4d25a4f1626fb17a362a599899d6bb6faf9c68490294eb436bd04b6e73099c5b

Contents?: true

Size: 191 Bytes

Versions: 76

Compression:

Stored size: 191 Bytes

Contents

# require "eitil_core/safe_executions/safe_call"

Kernel.module_eval do

  def safe_call(*args, return_value: nil, &block)
    block.call self, *args
    rescue
      return_value
  end

end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
eitil-2.0.8 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.7 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.6 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.5 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.4 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.3 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.2 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.1 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-2.0.0 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.4.1 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.4.0 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.12 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.11 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.10 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.9 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.8 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.7 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.6 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.5 eitil_core/lib/eitil_core/safe_executions/safe_call.rb
eitil-1.3.4 eitil_core/lib/eitil_core/safe_executions/safe_call.rb