summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-07-17 10:23:48 -0700
committerAdam Bard <github@adambard.com>2013-07-17 10:23:48 -0700
commit9dabe51ad7cb6799040639ded9cf630d87c9508c (patch)
tree33130d603f1312df4519d79ff07a0f4821b76f59
parent5a3a63c3921044576d62a437f856687d8c5490d5 (diff)
parent5267bff2cf778e615e6f2dec48bafaec00976b1a (diff)
Merge pull request #127 from zaa/patch-1
An an example of an instance variable assignment
-rw-r--r--ruby.html.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown
index af7af918..38d060a3 100644
--- a/ruby.html.markdown
+++ b/ruby.html.markdown
@@ -305,6 +305,8 @@ dwight = Human.new("Dwight K. Schrute")
# Let's call a couple of methods
jim.species #=> "H. sapiens"
jim.name #=> "Jim Halpert"
+jim.name = "Jim Halpert II" #=> "Jim Halpert II"
+jim.name #=> "Jim Halpert II"
dwight.species #=> "H. sapiens"
dwight.name #=> "Dwight K. Schrute"