Skip to content

Instantly share code, notes, and snippets.

@certainty
Created February 16, 2014 15:30
Show Gist options
  • Save certainty/7e2388800c47c14f2f85 to your computer and use it in GitHub Desktop.
Save certainty/7e2388800c47c14f2f85 to your computer and use it in GitHub Desktop.
class Util
def initialize(cli)
@cli = cli
end
def do_something
@cli.run("something")
end
end
class Cli
def run(*a) a end
def doit
Util.new(self).do_something
end
end
puts Cli.new.doit.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment