ruby-jokes / close_enough

Spelling is hrad. close_enough lets yuo think about code instaed.
http://ruby-jokes.github.com/close_enough
GNU General Public License v3.0
84 stars 10 forks source link

An attempt at finding the closest match #5

Closed jhollinger closed 11 years ago

jhollinger commented 11 years ago

This is such a terrible idea. Love it.

Here's an attempt at improving issue #3, where "foo".to_sim might resolve to either to_sym or to_str. Now it will be certain to use to_sym.

Fun fact: I tried to use a Hash as the inject argument. But apparently Hash assignment triggers method_missing, because I kept getting "stack level too deep" errors.

canweriotnow commented 11 years ago

This is great, thanks!