阅读背景:

在方法中调用方法以在Ruby中标题化

来源:互联网 

I am trying to create a titleizing method for a programming assignment, it capitalizes certain words and ignores others. It always capitalizes the first word. To this end, I made a method that finds the first word of a string, and tried to call it within the titleize method. I'm getting an error that says "warning: string literal in condition". I've tried changing the phrasing of the if loop around, but it's not fixing my error. Can anyone explain to my why my code is broken? Thanks so much for your help!I am trying to create a titleizing method for a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: