summaryrefslogtreecommitdiffhomepage
path: root/ruby.html.markdown
diff options
context:
space:
mode:
authorAlexander Zhuravlev <zaa@ikato.com>2013-07-17 05:22:32 +0400
committerAlexander Zhuravlev <zaa@ikato.com>2013-07-17 05:22:32 +0400
commit5267bff2cf778e615e6f2dec48bafaec00976b1a (patch)
treef9fa9efba7bde12665484a3459f64f151907e4c1 /ruby.html.markdown
parent9e44649842ee34128304135a96622e3069c6805f (diff)
An an example of an instance variable assignment
Diffstat (limited to 'ruby.html.markdown')
-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"