Created
February 2, 2010 01:21
-
-
Save workmad3/292259 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> module ActiveRecord | |
>> class Base | |
>> end | |
>> end | |
=> nil | |
>> module ActiveRecord | |
>> class Error | |
>> def initialize | |
>> puts "AR::Error" | |
>> end | |
>> end | |
>> end | |
=> nil | |
>> class Error | |
>> def initialize | |
>> puts "::Error" | |
>> end | |
>> end | |
=> nil | |
>> class A < ActiveRecord::Base | |
>> def errors | |
>> Error.new | |
>> end | |
>> end | |
=> nil | |
>> A.new.errors | |
::Error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment