We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6efba34 commit a51eb67Copy full SHA for a51eb67
ruby.md
@@ -558,6 +558,9 @@ dwight.name #=> "Dwight K. Schrute"
558
# Calling of a class method
559
Human.say('Hi') #=> "Hi"
560
561
+# Tip: Use .inspect to see instance with instance variables
562
+puts jim.inspect #=> #<Human:0x000058b3c7f0c7a0 @name="Jim Halpert", @age=0>
563
+
564
# Variable's scopes are defined by the way we name them.
565
# Variables that start with $ have global scope.
566
$var = "I'm a global var"
0 commit comments