diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:28:20 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:28:20 +0000 |
commit | aa4ad404c6aa4feccc69b8d7222bcfd1b1903215 (patch) | |
tree | f2d665ca4f0ca0be949eb6db96d8b3816dab5600 /activesupport/test/core_ext/module/attribute_aliasing_test.rb | |
parent | cefea3c677f90b2c095b377f1ba36a3ff157f5b0 (diff) | |
download | rails-aa4ad404c6aa4feccc69b8d7222bcfd1b1903215.tar.gz rails-aa4ad404c6aa4feccc69b8d7222bcfd1b1903215.tar.bz2 rails-aa4ad404c6aa4feccc69b8d7222bcfd1b1903215.zip |
Ruby 1.9 compat: shadowed vars, kcode
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext/module/attribute_aliasing_test.rb')
-rw-r--r-- | activesupport/test/core_ext/module/attribute_aliasing_test.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/module/attribute_aliasing_test.rb b/activesupport/test/core_ext/module/attribute_aliasing_test.rb index 05f7a5c4ca..bd23879513 100644 --- a/activesupport/test/core_ext/module/attribute_aliasing_test.rb +++ b/activesupport/test/core_ext/module/attribute_aliasing_test.rb @@ -3,11 +3,15 @@ require File.dirname(__FILE__) + '/../../abstract_unit' module AttributeAliasing class Content attr_accessor :title, :Data - + + def initialize + @title, @Data = nil, nil + end + def title? !title.nil? end - + def Data? !self.Data.nil? end |