Skip to content

Instantly share code, notes, and snippets.

@goz
Created March 18, 2010 10:37
Show Gist options
  • Save goz/336253 to your computer and use it in GitHub Desktop.
Save goz/336253 to your computer and use it in GitHub Desktop.
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