Last active
December 15, 2015 19:29
-
-
Save akiellor/5311865 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
class Foo | |
def self.with_bar | |
Foo.new(Bar.new) | |
end | |
def initiatize bar | |
@bar = bar | |
end | |
def something_fun | |
@bar.stuff * some_stuff | |
end | |
end | |
class Baz | |
def self.with_foo | |
Baz.new Foo.with_bar | |
end | |
def initialize foo | |
@foo = foo | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment