Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

docs

  • Loading branch information...
commit 643fb0f6be2923b8987022a0bf95b9d1af9392a6 1 parent 503a0fd
@kachick authored
Showing with 11 additions and 11 deletions.
  1. +10 −10 README.rdoc
  2. +1 −1  lib/instancevalue.rb
View
20 README.rdoc
@@ -35,18 +35,18 @@ Set constant values for each instance.
person.age #=> age at runtime
person.instance_eval{val :birthday, Time.now} #=> Exception
-* It has instance_variable like API
-
-* .value_reader
-* #instance_value_defined?
-* #instance_value_get
-* #instance_value_set
-* #instance_values
-* #remove_instance_value
+* It has instance_variable like API:
+
+ * .value_reader
+ * #instance_value_defined?
+ * #instance_value_get
+ * #instance_value_set
+ * #instance_values
+ * #remove_instance_value
-* Aliased shortname
+* Aliased shortname:
-* #val
+ * #val
== Requirements
View
2  lib/instancevalue.rb
@@ -13,7 +13,7 @@
# end
#
# def age
-# (Time.now - val(:birthday)) / (60 * 60 * 24 * 365)
+# (Time.now - birthday) / (60 * 60 * 24 * 365)
# end
# end
#
Please sign in to comment.
Something went wrong with that request. Please try again.