rubymotion-community / motion-support

Commonly useful extensions to the standard library for RubyMotion
MIT License
132 stars 28 forks source link

Implements `Object#in?` #7

Closed colinta closed 11 years ago

colinta commented 11 years ago

I ran into the same error that you did, the weird 'specs' bug. I got around it by using an alias.

I implemented the original version of in?, see these conversations:

https://github.com/rails/rails/pull/258 https://github.com/rubymotion/sugarcube/issues/76 https://github.com/rails/rails/pull/10394

colinta commented 11 years ago

:thumbsup: -- this should not have slipped in. --dhh

Well there you go :wink:

tkadauke commented 11 years ago

Looks great. How did you come up with the alias trick? I worked on the in? method for a full day and got nowhere ...

colinta commented 11 years ago

I have no idea! One of those random "hmph, maybe THIS will do it" moments...