code_junkie

Ruby 'Capitalize!' paradox

Nov 12th, 2011
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. fname = fullname[0...fullname.index(' ')].capitalize!
  2.  
  3. fname = fullname[0...fullname.index(' ')].capitalize
Add Comment
Please, Sign In to add comment