Created
March 18, 2010 10:37
-
-
Save goz/336253 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 Array | |
def remove(*args) | |
string_params = "" | |
args.each do |arg_item| | |
string_params += arg_item | |
end | |
flatten.collect { |k| k.delete string_params} | |
end | |
def repeat(int) | |
initial_array = collect { |j| j.to_s.split * int} | |
initial_array.flatten | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment