lib/jubjub/helpers.rb
# Hint that methods are actually applied to list using method_missing
Hint that methods are actually applied to list using method_missing
Hint that methods are actually applied to list using method_missing
def search_list(default=nil, &block)
        list unless default 
        if list?
          list.find( &block ) || default
        else
          default
        end
      end
def search_list ( default = nil , & block ) list unless default if list? list . find ( & block ) || default else default end end
Hint that methods are actually applied to list using method_missing
Hint that methods are actually applied to list using method_missing
# We HAVE to search unless there is a default
default
<not_specific>
block
<not_specific>