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...
Ruby On parsing 2 1-digit numbers
by Martin Carel,
January 23, 2009 21:58
I like that!
Thanks for th...
Ruby On parsing 2 1-digit numbers
by Martin Carel,
January 23, 2009 21:07
@ Tj Holowaychuk: it was no...
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...
class Position attr_accessor :x, :y ...
Ruby parsing 2 1-digit numbers
Is there a better way to do...
oops. We posted the 'Sinatr...