Skip to content
Poignant Guide Ruby Q&A
Sections

p

1 thread tagged with this topic

Threads tagged p

  1. ✓

    What is the difference between puts, print and p in Ruby?

    puts prints a value and then starts a new line, print prints it with no new line, and p prints the inspect form, which shows the object as Ruby sees it, with...

    Ruby syntax and basicsOdile MarchettiStaff answer
    0replies
Poignant Guide Ruby Q&A. Questions and answers on learning Ruby and programming: syntax, blocks, objects, gems, Rails, debugging and reading the Poignant Guide.