def unbold_pipes (wikibold_string)
     wikibold_string.
      split('|').
...

Ruby Ugly split/join

by Muke Tever, July 30, 2009 19:52, 3 refactorings, tagged with rails, split, regexp

This is supposed to be taki...

F4192eeb4b26e96deab8b5c68926105d Talk
def first_day_of_month(selected_date)
...

Ruby Splitting array into define...

by Bonobo, March 25, 2009 14:04, 4 refactorings, tagged with ruby, date, arrays, split, calendar

I'm mainly interested in op...

4e0322e79d041875f3ef7db64e2d5b18 Talk
artists = [1, 2, 3]
    column_1 = artists[0..artists.size/2]
    column_2 = artists[artists.size/2+1..artists.size]

Ruby Split an array into half

by gudata, August 14, 2008 09:49, 9 refactorings, tagged with ruby, array, split

The example works if the ar...

4ee8e20a519f3afdcd03bcf24681dbd8 Talk