Skip to content

Instantly share code, notes, and snippets.

@akiellor
Last active December 15, 2015 19:29
Show Gist options
  • Save akiellor/5311865 to your computer and use it in GitHub Desktop.
Save akiellor/5311865 to your computer and use it in GitHub Desktop.
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