Skip to content

Instantly share code, notes, and snippets.

@cwoodcox
Created December 2, 2014 20:22
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 cwoodcox/097a053ab4804f86c07e to your computer and use it in GitHub Desktop.
Save cwoodcox/097a053ab4804f86c07e to your computer and use it in GitHub Desktop.
class StringJoiner
def call string1, string2
"#{string1}#{string2}"
end
end
join = StringJoiner.new
join.call("this ", "is normal")
# => "this is normal"
join.("this ", "is new")
# => "this is new"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment