15 Dec '13, 8pm

Jay Fields' Thoughts: Ruby: === operator

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?spre...

Tweets

Top Ruby Article: Ruby 2.1.0-rc1 is released:

ruby-lang.org 20 Dec '13, 5pm

We are pleased to announce the release of Ruby 2.1.0-rc1. Please test the new features in Ruby 2.1 before the final releas...

相変わらずトップページのむっちゃ目立つダウンロードリンクの URL 間違っててくさ

ruby-lang.org 17 Dec '13, 5am

Ruby 1.9.3-p484 リリース Posted by usa on 22 Nov 2013 Ruby 2.0.0-p353 リリース Posted by nagachika on 22 Nov 2013 第6回フクオカRuby大賞(20...

Ruby 2.1.0-rc1 リリース

ruby-lang.org 20 Dec '13, 8pm

Ruby 2.1.0-rc1 をリリースしました。 2013/12/25 に予定されている最終リリース前に新機能をどうぞお試しください。 preview2 からの注目すべき変更点 拡張ライブラリ curses が削除されました。 #8584 そ...

Results from the Northeastern Meet

tfrrs.org 15 Dec '13, 1pm

2014 Indoor Qualifying List 2014 Indoor Qualifying List M | F Great Plains AC Great Plains AC M | F Heart of America AC He...

Ruby 2.1.0-rc1 リリース

ruby-lang.org 21 Dec '13, 7pm

Ruby 2.1.0-rc1 をリリースしました。 2013/12/25 に予定されている最終リリース前に新機能をどうぞお試しください。 preview2 からの注目すべき変更点 拡張ライブラリ curses が削除されました。 #8584 そ...

Jay's Golf Awards for 2013 - Part 1

Jay's Golf Awards for 2013 - Part 1

cybergolf.com 20 Dec '13, 7pm

Since launching his first golf writing website in 2004, http://jayflemma.thegolfspace.com , Jay Flemma 's comparative anal...

Mass. #solar operator fields snow-removal syste...

solarindustrymag.com 09 Dec '13, 5pm

According to a Massachusetts solar owner and operator, the one environmental factor that is capable of putting a real damp...

Rails 4.1

edgeguides.rubyonrails.org 18 Dec '13, 2am

If you're upgrading an existing application, it's a great idea to have good test coverage before going in. You should also...

Jay Chou is Spotify Singapore's most streamed artist 2013

Jay Chou is Spotify Singapore's most streamed a...

blog.dk.sg 16 Dec '13, 3am

Jay Chou is Spotify Singapore’s most streamed artist 2013 | 16 December 2013 | 11:30 AM | No Comment | Spotify Singapore r...

Ruby Central requires organizations recieving a...

rubycentral.org 11 Dec '13, 4am

Ruby Central Community Grant Details We see any support we provide, both advisory and financial, as a first step towards e...

おぉ。2.1-rc1来たか

ruby-lang.org 20 Dec '13, 5pm

We are pleased to announce the release of Ruby 2.1.0-rc1. Please test the new features in Ruby 2.1 before the final releas...

Confident Ruby: A Review

rubyflow.com 18 Dec '13, 6pm

Confident Ruby: A Review Posted by dce on December 18, 2013 — 0 comments My coworkers just posted our favorite parts of Av...

My thoughts are with @DazieWilliams as she hono...

change.org 21 Dec '13, 9pm

This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.

Lenguaje de Programación Ruby:

ruby-lang.org 13 Dec '13, 4pm

Un lenguaje de programación dinámico y de código abierto enfocado en la simplicidad y productividad. Su elegante sintaxis ...

[Post] Thoughts: Sony NWZ-WH505 and NWZ-WH303 headphones:

[Post] Thoughts: Sony NWZ-WH505 and NWZ-WH303 h...

xinyun.sg 20 Dec '13, 5am

: as a digital music player (MP3 player), a headphone and speakers (note: surround sound feature) - Storage : up to 4GB or...