I see that “p” is the same as “puts”. Which would
most programs use in a program?
Jeff
I see that “p” is the same as “puts”. Which would
most programs use in a program?
Jeff
Jeffrey B. wrote:
I see that “p” is the same as “puts”. Which would
most programs use in a program?
It’s not the same - p foo is equivalent to puts foo.inspect. They’re
used for different things; p is for debugging output, puts for general
text display.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs