Ruby On Recursive population of has...

by Martin Carel, January 24, 2009 03:26

oops. We posted the 'Sinatr...

6fe6808d7705a77f61e77f24dcebde14 Talk
def parse hash_of_params
  hash_of_params.inject({}) do |hash, (key, value)|
    if key =~ /\[.*\]/
...

Ruby On Recursive population of has...

by Martin Carel, January 24, 2009 03:17

Or, inspired by http://judo...

6fe6808d7705a77f61e77f24dcebde14 Talk

Ruby On parsing 2 1-digit numbers

by Martin Carel, January 23, 2009 21:58

I like that!
Thanks for th...

6fe6808d7705a77f61e77f24dcebde14 Talk

Ruby On parsing 2 1-digit numbers

by Martin Carel, January 23, 2009 21:07

@ Tj Holowaychuk: it was no...

6fe6808d7705a77f61e77f24dcebde14 Talk
def self.parse(digits)
  new(*digits.scan(/(\d).*(\d)/).flatten)
rescue 
...

Ruby On parsing 2 1-digit numbers

by Martin Carel, January 15, 2009 23:29

I much prefer that. The reg...

6fe6808d7705a77f61e77f24dcebde14 Talk
class Position

  attr_accessor :x, :y
...

Ruby parsing 2 1-digit numbers

by Martin Carel, January 15, 2009 21:17, 7 refactorings, tagged with ruby, parsing

Is there a better way to do...

6fe6808d7705a77f61e77f24dcebde14 Talk