You can find the first character in a string in Ruby by using indexing with [0] or .chr method. Here's an example using indexing:
main.rb67 chars4 lines
Alternatively, you can use the .chr method to get the first character:
main.rb68 chars4 lines
gistlibby LogSnag