-8

Is there any ruby method to convert string into sentence.

Like this is a sentence to This is a sentence.

or

i m happy to I'm happy

dnsh
  • 3,516
  • 2
  • 22
  • 47
sreeraj nyros
  • 929
  • 1
  • 6
  • 17

2 Answers2

1
a="this is a sentence"

puts a.capitalize 

output

This is a sentence
Gopal
  • 306
  • 2
  • 15
0

I found gingerice gem that might apt for my question.

BTW thank you all for having time for me.

Its working as expected for me. output

Regards,
Sreeraj

sreeraj nyros
  • 929
  • 1
  • 6
  • 17