Posted By

Krypt on 12/13/08


Tagged

character ruby ascii


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

rubyrage
webstic


ASCII and characters


 / Published in: Ruby
 

  1. ?A # => 65
  2. 65.chr # => A
  3.  
  4. s = "hello"
  5. s[0] # => 104
  6. s[0].chr # => h

Report this snippet  

You need to login to post a comment.