Chaining Methods after `Gets`

Is it okay to chain methods after gets.chomp? If I wanted to remove the breaking space and transform the input string at the same time by using name = gets.chomp.capitalize, would that be good form?

Method chaining and Ruby go hand in hand. What’s good form is a subjective view. Ruby is very objective. As you sculpt your perspective of the language, keep that strictness of form in mind.