f = { "user" => { "name" => "Tom", "message" => { "count" => 24, "last" => "2011-02-05" } } }
q = "user/message/last"
v = q.split("/")
...

Ruby Finding a value in a Hash b...

by Xeph, May 02, 2011 06:28, 2 refactorings, tagged with enumerable, hash

I've got a hash with nested...

F92de739cd61d6f3f4b71e5d07634a2e Talk
RecipeQuery.SortOrder key = (RecipeQuery.SortOrder)Enum.Parse(typeof(RecipeQuery.SortOrder), sortKey);

C# Seriously why is there no T...

by Hiawatha, February 20, 2011 02:17, 5 refactorings, tagged with enumerable, parse, enum

Is there really no better w...

4df33f9e8a81cc9d8046f057dbb4debc Talk
module Enumerable
  def to_a(n = nil)
    result = []
...

Ruby Enumerable#to_a with termin...

by Ben Kudria, December 24, 2007 23:36, No refactoring, tagged with ruby, enumerable, finite, countable, countability

Please see this ruby-talk t...

5b6484445948ebe063c264a1015dfcc4 Talk