Created
February 6, 2010 22:09
-
-
Save levicole/296988 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 :this, :that | |
| def initialize(this, that) | |
| self.this, self.that = this, that | |
| end | |
| end | |
| class MyClass | |
| def instantiate_a_foo | |
| Foo.new("this", "and this") | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment