Ruby: How to get the first character of a string

前端 未结 0 1552
终归单人心
终归单人心 2020-12-23 06:33

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

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