Skip to content
Browse files

Improve clarity of example. Make it follow guidelines for output disp…

…lay.
  • Loading branch information...
1 parent b3e5e25 commit 262dd965df5c46d674f76928a46a76c6132c9e35 @r00k r00k committed Feb 19, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb
View
10 activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb
@@ -7,11 +7,11 @@ class Module
# attr_accessor_with_default :age, 25
# end
#
- # some_person.age
- # => 25
- # some_person.age = 26
- # some_person.age
- # => 26
+ # person = Person.new
+ # person.age # => 25
+ #
+ # person.age = 26
+ # person.age # => 26
#
# To give attribute <tt>:element_name</tt> a dynamic default value, evaluated
# in scope of self:

0 comments on commit 262dd96

Please sign in to comment.
Something went wrong with that request. Please try again.