标签: ruby-on-rails ruby
是否有任何ruby方法将字符串转换为句子。
赞this is a sentence至This is a sentence.
this is a sentence
This is a sentence.
或
i m happy至I'm happy
i m happy
I'm happy
答案 0 :(得分:1)
a="this is a sentence" puts a.capitalize
输出
This is a sentence
答案 1 :(得分:0)
我发现gingerice宝石可能适合我的问题。
它按预期为我工作。
的问候, Sreeraj