M = [["a", "b"], ["c", "d"], ["e", "f"]] x = [] ...
Ruby Array parsing in a block
by https://www.google.com/accounts/o8/id?id=AItOawmWMRp7fAci9domcwhxD3fNikoTak9bkYc,
January 26, 2012 05:59,
1 refactoring, tagged with arrays, blocks, loops, array syntax
def disease_search(query)
treatment_results = Array.new
symptom_results = Array.new
...
Ruby Messy Blocks
by https://www.google.com/accounts/o8/id?id=AItOawncqSogDKAQLilNnxoB32ZKr-9LXu8x3WA,
April 06, 2011 02:50,
6 refactorings, tagged with array, rails activerecord, blocks
This is a really ugly metho...
def disease_search(query)
treatment_results = Array.new
symptom_results = Array.new
...
Ruby Messy Blocks
by https://www.google.com/accounts/o8/id?id=AItOawncqSogDKAQLilNnxoB32ZKr-9LXu8x3WA,
April 06, 2011 02:50,
4 refactorings, tagged with array, rails activerecord, blocks
This is a really ugly metho...
def field_row(options={}, &block)
concat("<div class="field_row">", block.binding)
concat(capture(&block), block.binding)
...
Ruby Cheap ruby block templating
Hello all. I've got the fol...
x should be ["a","c","e"] i...