Created
March 16, 2010 15:23
-
-
Save bemurphy/334090 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 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