Guest User

Untitled

a guest
Feb 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. class Array
  2. def to_proc
  3. x = self.dup
  4. proc { |y| x[0].send(x[1], y) }
  5. end
  6. end
  7.  
  8. [".", "what"].select(&[File, :exists?]) # <= [","]
Add Comment
Please, Sign In to add comment