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

x should be ["a","c","e"] i...

55502f40dc8b7c769880b10874abc9d0 Talk
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...

55502f40dc8b7c769880b10874abc9d0 Talk
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...

55502f40dc8b7c769880b10874abc9d0 Talk
def field_row(options={}, &block)
  concat("<div class="field_row">", block.binding)
  concat(capture(&block), block.binding)
...

Ruby Cheap ruby block templating

by Alistair, November 22, 2008 15:50, 6 refactorings, tagged with rails, blocks

Hello all. I've got the fol...

95d8510ef03567cd7d014d4790116b0d Talk