Sonntag
Jun222008
in
Ruby
Ruby on the edge
Sonntag, Juni 22, 2008 at 5:50AM
Just a short note to direct you to a great post over at rubyonrails.com (some days old, i know...but i can not in the office right now and can not access the internet everyday. Yes... this exists :-) ). Chuw Yeo June wrote about API changes and performance tests. The API gets some new methods which make your life easier and at the same time are a bit confusing. Sample ? Here you go:
Object.present? method was added which is the same as not Object.blank? which is the same as Enumerable.any?
Three ways to do the same thing (as long as you are working on Enumerable). I think this is confusing and clutters the API.
Object.present? method was added which is the same as not Object.blank? which is the same as Enumerable.any?
Three ways to do the same thing (as long as you are working on Enumerable). I think this is confusing and clutters the API.


Reader Comments