Sha256: c2a3099438c456f8a7cc4fd5630b7d648ea18af74a980c13e191efe3655467e1

Contents?: true

Size: 150 Bytes

Versions: 2

Compression:

Stored size: 150 Bytes

Contents

Try = -> process do
  -> input do
    begin
      output = process[input]
      output.nil? ? input : output
    rescue
      input
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
to_proc-0.0.2 lib/to_proc/try.rb
to_proc-0.0.1 lib/to_proc/try.rb