diff options
author | Xavier Noria <fxn@hashref.com> | 2008-05-12 18:37:37 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-05-12 18:39:47 +0200 |
commit | 9d0900c7dffcd95339ace815192d4778cd04dc09 (patch) | |
tree | d6ddf689ab66cada3f6d0bf5458a34f5389f0563 | |
parent | 130a280ddee1f96ccf378b52c17ee742b5e54f4a (diff) | |
download | rails-9d0900c7dffcd95339ace815192d4778cd04dc09.tar.gz rails-9d0900c7dffcd95339ace815192d4778cd04dc09.tar.bz2 rails-9d0900c7dffcd95339ace815192d4778cd04dc09.zip |
revised doc conventions in attr_internal.rb
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/attr_internal.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/attr_internal.rb b/activesupport/lib/active_support/core_ext/module/attr_internal.rb index e0be31090c..b66c0d7500 100644 --- a/activesupport/lib/active_support/core_ext/module/attr_internal.rb +++ b/activesupport/lib/active_support/core_ext/module/attr_internal.rb @@ -1,19 +1,19 @@ class Module - # Declare an attribute reader backed by an internally-named instance variable. + # Declares an attribute reader backed by an internally-named instance variable. def attr_internal_reader(*attrs) attrs.each do |attr| module_eval "def #{attr}() #{attr_internal_ivar_name(attr)} end" end end - # Declare an attribute writer backed by an internally-named instance variable. + # Declares an attribute writer backed by an internally-named instance variable. def attr_internal_writer(*attrs) attrs.each do |attr| module_eval "def #{attr}=(v) #{attr_internal_ivar_name(attr)} = v end" end end - # Declare an attribute reader and writer backed by an internally-named instance + # Declares an attribute reader and writer backed by an internally-named instance # variable. def attr_internal_accessor(*attrs) attr_internal_reader(*attrs) |