Skip to content

Instantly share code, notes, and snippets.

@pullmonkey
Created January 18, 2010 19:48
Show Gist options
  • Save pullmonkey/280305 to your computer and use it in GitHub Desktop.
Save pullmonkey/280305 to your computer and use it in GitHub Desktop.
class TestItReceiver
# show text takes a string, but may have some other params for us to look through
def show_text(string, *params)
puts string
end
def show_text_with_positioning(array, *params)
# make use of the show text method we already have
# assuming we don't care about positioning right now and just want the text
show_text(array.select{|i| i.is_a?(String)}.join(""), params)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment