Ruby: How to get the first character of a string

前端 未结 0 456
日久生厌
日久生厌 2020-12-23 06:34

How can I get the first character in a string using Ruby?

Ultimately what I\'m doing is taking someone\'s last name and just creating an initial out of it.

S

相关标签:
回答
  • 消灭零回复
提交回复
热议问题