Ruby, Programming, Ruby on Rails, Web Development.
.p we can clearly identify the type of the return value. Conclusion print vs puts : print→prints && ignores newline .puts → unloads && adds new line puts vs p : puts → calls .to_s method && returns nil .p → calls .inspect method && doesn’t return nil Follow my coding journey here on Medium or find