From 262dd965df5c46d674f76928a46a76c6132c9e35 Mon Sep 17 00:00:00 2001 From: Ben Orenstein Date: Sat, 19 Feb 2011 12:56:55 -0500 Subject: Improve clarity of example. Make it follow guidelines for output display. --- .../core_ext/module/attr_accessor_with_default.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb b/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb index 0b6731883c..e3259a0a84 100644 --- a/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb +++ b/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 :element_name a dynamic default value, evaluated # in scope of self: -- cgit v1.2.3