rubyparagraphlearn-ruby-the-hard-way

How do I create a paragraph in Ruby?


I am running through a tutorial and even though I have typed this code exactly as instructed it is coming back with a syntax error. Can anyone explain how to create a paragraph in ruby?

My attempt is shown below.

Thanks

Puts <<PARAGRAPH
There's something going on here.
With the PARAGRAPH thing.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
PARAGRAPH

Solution

  • You have Puts. You want puts.