13 Jul '12, 2am

@asmallteapot

Recently I was looking at creating a patch for Mocha that would allow you to specify a class as an argument. The feature was added to allow you to specify that an argument can be any instance of the class specified.object.expects(:do_this).with(Fixnum, true, 99) object.do_this(2, true, 99) # satisfies the expectation To support this new feature I looked into the === method. The === method of Object is defined as:Case Equality—For class Object, effectively the same as calling #==, but typically overridden by descendents to provide meaningful semantics in case statements. There's no mystery here, use === like ==. However, the === method of Module provides the behavior I'm looking for.Case Equality—Returns true if anObject is an instance of mod or one of mod‘s descendents. Of limited use for modules, but can be used in case statements to classify objects by class. The documen...

Full article: http://blog.jayfields.com/2007/03/ruby-operator.html?m=1

Tweets

Does Ruby Have Too Many Equality Tests?:

rubylearning.com 12 Jul '12, 12am

Does Ruby Have Too Many Equality Tests? This guest post is by Eric Anderson , who develops web-based applications for smal...

"I signed up for an elegant syntax and all I got was this grammar dependency graph." #Ruby

"I signed up for an elegant syntax and all I go...

blog.nicksieger.com 13 Jul '12, 3am

I haven’t even begun to absorb all the meanings from this picture, but one stark difference between Ruby and the other two...

Rubyist Magazine - Ruby の歩き方:

jp.rubyist.net 12 Jul '12, 1pm

Ruby についてもっと詳しく知りたい方はリファレンスマニュアル を読んでください。 オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル Ruby の詳細は、ほぼリファレンスマニュアルに記載されています。 Ruby で何を出来るの...

Ruby on Rails - APIdock:

apidock.com 11 Jul '12, 11am

The Model layer represents your domain model (such as Account, Product, Person, Post ) and encapsulates the business logic...

@peterc Thanks for mentioning minitest-rails in...

rubyweekly.com 12 Jul '12, 1pm

GitHub Takes $100m of Funding The Ruby world celebrates its latest home grown business success, GitHub, who this week anno...

fmfm / “SimpleCov: A Powerful, Straightforward Ruby 1.9 Code Coverage Tool”

fmfm / “SimpleCov: A Powerful, Straightforward ...

rubyinside.com 12 Jul '12, 9am

SimpleCov is a code coverage analysis tool for Ruby 1.9. It uses 1.9’s built-in Coverage library to gather code coverage d...

Sam Ruby: utf8mb4

intertwingly.net 10 Jul '12, 6pm

Amusing exercise: compile a list of OS vendors who, by default, ship a non-Unicode-capable ("narrow") build of Python. Pos...

Ruby 2 will have streaming zlib support! Here's...

blog.segment7.net 10 Jul '12, 8pm

Earlier today I checked in a patch that adds streaming zlib processing to Ruby. This allows you to process a stream withou...

To Ruby From Java:

ruby-lang.org 07 Jul '12, 1pm

Java is mature. It’s tested. And it’s fast (contrary to what the anti-Java crowd may still claim). It’s also quite verbose...

Ruby ActiveRecord and MySQL: Ruby Study Notes -...

rubylearning.com 08 Jul '12, 12pm

We shall look at code examples explaining how to connect to a MySQL database using Ruby and ActiveRecord . ActiveRecord Ra...

Ruby für Umsteiger:

ruby-lang.org 09 Jul '12, 2am

Wenn du zum ersten Mal Ruby-Code siehst, wird er dich wahrscheinlich an andere Programmiersprachen erinnern, die du benutz...

Low class operator

Low class operator

bigdogdotcom.wordpress.com 04 Jul '12, 9pm

PETALING JAYA: AirAsia has issued an official warning letter toMalaysia Airports Holding Berhad (MAHB) for allegedly haras...

Patch #2735: Ruby 1.8.7 and Rails 2.1.2 - Redmine:

redmine.org 10 Jul '12, 3am

Rails 2.1.x is available with Ruby 1.8.7. http://weblog.rubyonrails.org/2008/6/26/this-week-in-rails-june-26-2008 so, in R...

MongoDB’s ObjectId’s contain a timestamp, ... T...

rubylearning.com 08 Jul '12, 8am

Being Awesome with the MongoDB Ruby Driver This guest post is by Ethan Gunderson , who is a software developer living in C...

NSW Operator 1st Class Jason Dale Lewis SEAL - ...

militarytimes.com 07 Jul '12, 12am

Navy Special Warfare Operator 1st Class (SEAL) Jason Dale Lewis Died July 6, 2007 Serving During Operation Iraqi Freedom 3...