Skip to content

Instantly share code, notes, and snippets.

@bemurphy
Created March 16, 2010 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bemurphy/334090 to your computer and use it in GitHub Desktop.
Save bemurphy/334090 to your computer and use it in GitHub Desktop.
class Foo
def initialize(bar)
@bar = bar
end
def foobar(prefix)
"#{prefix}: imaginary long running process: #{@bar}"
end
end
foo_one = Foo.new("foo one reporting!")
foo_two = Foo.new("foo two reporting!")
puts foo_one.foobar("Hello")
puts foo_two.foobar("Hello")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment