#ruby
Read more stories on Hashnode
Articles with this tag
Pry is a REPL (Read, Evaluate, Print, Loop) that pauses your code wherever inserted and allows you to test/debug. When your code gets to the ‘pry’ it...
Hashes are basically like JavaScript objects. They are composed of key/value pairs and each key points to a specific value. For example; a_hash = {...
In Ruby, to access elements, bracket notation is used with the index of the element. fruits = ["banana", "mango", "pineapple"] fruits[0] # =>...
Classes are like the blueprint from which individual objects are created. Class variables Class methods Private Methods Class Variables Class...