Created
January 18, 2010 19:48
-
-
Save pullmonkey/280305 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 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