code_junkie

Ruby - Convert Integer to String

Nov 10th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. >> a = "0123"
  2. => "0123"
  3. >> a[0]
  4. => 48
  5.  
  6. a[0].chr
  7.  
  8. "ABC"[2,1]
  9. "ABC"[2..2]
  10. "ABC".slice(2,1)
Add Comment
Please, Sign In to add comment