Skip to content

Instantly share code, notes, and snippets.

@SamSaffron
Created February 15, 2010 20:55
Show Gist options
  • Save SamSaffron/304975 to your computer and use it in GitHub Desktop.
Save SamSaffron/304975 to your computer and use it in GitHub Desktop.
Test
str = <<-EOS
Stallone
Star Trek
Star Wars
Starship Troopers
State Property
Stephen King
Steven Seagal
Steven Spielberg
Street Fighter
Stuart Little
Superman
TMNT
Tarantino Collection
Teen Wolf
Terminator
The Addams Family Collection
The Apple Dumpling Gang
The Arrival
The Art Of War
The Beatles Movies
The Crow
The Exorcist
The Fast and Furious
The Fly
The Librarian
The Man with No Name
The Marine
The Mummy
The Nutty Professor
The Prophecy
The Scorpion King
The Texas Chainsaw Massacre
The Whole Nine Yards
Tim Burton
Tin Tin
Tomb Raider
Toy Story
Transformers
Transporter
Twilight
Underworld
Universal Soldier
Vacancy
Van Damme
VeggieTales
Wallace and Gromit
War Games
Wayne's World
Weekend at Bernie's
Wes Craven
Wrong Turn
X-Files
X-Men
XxX
Zathura - Jumanji
Zorro Collection
EOS
str.split("\n").each_slice(6) do |*items|
puts "<tr><td>#{items.join("</td><td>")}</td></tr>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment