Created
July 16, 2010 07:55
-
-
Save workmad3/478082 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
| module Foo | |
| attr_accessor :bar | |
| def baz | |
| self.bar = "test" | |
| end | |
| end | |
| class Buzz | |
| extend(Foo) | |
| end | |
| Buzz.baz | |
| puts Buzz.bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment