Last active
March 16, 2018 21:05
-
-
Save salma71/dd41123fcd6844bcca67ad65ff00b30f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.display_product | |
@@all.each.with_index(1) do |product, i| | |
puts " #{i}. #{product.name}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment