Skip to content

Instantly share code, notes, and snippets.

@chadjemmett
Created January 16, 2014 21:21
Show Gist options
  • Save chadjemmett/8463664 to your computer and use it in GitHub Desktop.
Save chadjemmett/8463664 to your computer and use it in GitHub Desktop.
def string_thing(string)
holding_array = []
unless string.empty?
holding_array << String.new(string.slice! (0..249))
end
return holding_array
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment