Skip to primary content

42

Web notebook about thoughts and discoveries in DevOps, SRE, Software Engineering….

42

Main menu

  • Home
  • About
  • contact
  • Links

Post navigation

← Previous Next →

Rails console formatting

Posted on 20 September 2011 by kosmas
Email this to someone
email
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Problem

You would like to have a formatted output in your console when you want to have a look at an objects methods for example (o.methods).

 

Solution

You can use the y before the o.methods like below:

 

1
y o.methods

This entry was posted in Ruby, ruby on rails and tagged ruby console formatting by kosmas. Bookmark the permalink.
Proudly powered by WordPress