Permalink
Browse files

docs

  • Loading branch information...
1 parent ea14fa0 commit 19899f12f6b2389f2bb58712e4775f8d02b923a4 @kachick committed Apr 5, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 README.rdoc
  2. +1 −1 lib/instancevalue.rb
View
@@ -30,9 +30,9 @@ Set constant values for each instance.
end
end
- person = Person.new Time.at 8888
- p person.birthday
- p person.age #=> age at runtime
+ person = Person.new Time.at YOUR_BIRTHDAY
+ person.birthday #=> YOUR_BIRTHDAY
+ person.age #=> age at runtime
person.instance_eval{val :birthday, Time.now} #=> Exception
* It has instance_variable like API
View
@@ -18,7 +18,7 @@
# end
#
# person = Person.new YOUR_BIRTHDAY
-# person.birthday
+# person.birthday #=> YOUR_BIRTHDAY
# person.age #=> age at runtime
# person.instance_eval{val :birthday, Time.now} #=> Exception
module InstanceValue

0 comments on commit 19899f1

Please sign in to comment.