Skip to content

Instantly share code, notes, and snippets.

@levicole
Created February 6, 2010 22:09
Show Gist options
  • Select an option

  • Save levicole/296988 to your computer and use it in GitHub Desktop.

Select an option

Save levicole/296988 to your computer and use it in GitHub Desktop.
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