lib/to_proc/try.rb in to_proc-0.0.2 vs lib/to_proc/try.rb in to_proc-0.0.3
- old
+ new
@@ -1,10 +1,12 @@
-Try = -> process do
- -> input do
- begin
- output = process[input]
- output.nil? ? input : output
- rescue
- input
+module ToProc
+ Try = -> process do
+ -> input do
+ begin
+ output = process[input]
+ output.nil? ? input : output
+ rescue
+ input
+ end
end
end
end