Women in Technology

Hear us Roar



Article:
  An Introduction to RubyCocoa, Part 2
Subject:   Ruby-esque
Date:   2005-03-08 17:17:43
From:   n9yty
Looks like perl-ish code, not Ruby-esque...


Another example:
for i in 0..count - 1
@files.push(
files.objectAtIndex(i))
end


would be more Ruby-esque as:


0...count.times { |el| @files.push(files.objectAtIndex(el)) }


Wouldn't it? Thanks for the impetus to look into RubyCocoa, though!