class Array def split_in_two(first_chunk_size = self.size / 2) [self[0..first_chunk_size - 1], self[first_chunk_size..-1]] ...
Ruby On Split an array into half
by dcadenas.blogspot.com,
October 02, 2010 15:07
Ruby On Code to detect the web browser
by dcadenas.blogspot.com,
August 29, 2008 17:19
@foca: A method extraction ...
require 'rubygems' require 'spec' ...
Ruby On Code to detect the web browser
by dcadenas.blogspot.com,
August 29, 2008 02:10
@chrismo: check that your c...
def test_web_browser()
if request.env["HTTP_USER_AGENT"][/Firefox\/3/]=="Firefox/3"
return "Firefox3"
...
Ruby Code to detect the web browser
by dcadenas.blogspot.com,
August 28, 2008 17:19,
18 refactorings
This is not my code but I w...
def human_date date date = Date.parse(date) if date.is_a?(String) date.strftime date_format(date) ...
Ruby On Human Date Method
by dcadenas.blogspot.com,
July 06, 2008 10:12
I share the scudco point of...

If you are going to use thi...