What is the right way to continue Ruby language statement on a second - ProProfs Discuss
Advertisement

What is the right way to continue Ruby language statement on a second line?

Asked by Ary.Alva, Last updated: Mar 11, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

Ary.Alva

Ary.Alva

Ary.Alva
Ary.Alva

Answered Jun 01, 2018

Use a backslash at the end of the first line
Break line at an operator like + or - or break after semicolon between method parameters

The coreect answers are B and C
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.