Guest User

Untitled

a guest
Nov 19th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. def destructive_uppercase(str)
  2. var x
  3. str.each_char do { |el|
  4. if el === [A..Z]
  5. el += x }
  6. end
  7. return x
Advertisement
Add Comment
Please, Sign In to add comment