ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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!