Ruby Ruby Collections Build a Grocery List Program Build a Grocery List Program: Part 2

Paulo Moreira
Paulo Moreira
2,963 Points

Inspect Method

Hey everybody! I'm new to programming and to Ruby and still donĀ“t get what the method ".inspect" stands for and when to use it.

Thanks for any replies!

1 Answer

Use Ruby's inspect method to view the raw contents of a hash or string. (the keys and/or values)
Here it is in the documentation: