Created
June 18, 2015 05:09
-
-
Save pjc0247/bf0a14285419398a21db to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class Foo | |
| attr_accessor :bar | |
| visible_owner :bar | |
| end | |
| class Chicken | |
| def initialize | |
| @foo = Foo.new | |
| @foo.bar = 1234 | |
| end | |
| end | |
| begin | |
| foo = Foo.new | |
| foo.bar = 1234 | |
| chicken = Chicken.new | |
| chicken.foo.bar = 1234 # error | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment