Sha256: 2e1ed395200413ea880f1c9e249d2d58fa96a6d3e022a8dd235eae99a6e7565b

Contents?: true

Size: 188 Bytes

Versions: 6

Compression:

Stored size: 188 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
to_proc-0.0.8 lib/to_proc/try.rb
to_proc-0.0.7 lib/to_proc/try.rb
to_proc-0.0.6 lib/to_proc/try.rb
to_proc-0.0.5 lib/to_proc/try.rb
to_proc-0.0.4 lib/to_proc/try.rb
to_proc-0.0.3 lib/to_proc/try.rb