Skip to content
Use method missing to just execute the closest match to the method you tried to call
Ruby
Latest commit 4ac8500 Mar 11, 2012 Mark Burns Merge pull request #1 from Holek/patch-1
Nope
Failed to load latest commit information.
lib cache the matcher Nov 23, 2011
spec updated Fuzzy Nov 23, 2011
.gitignore pkg dir to gitignore Nov 23, 2011
Gemfile first passing proper spec Nov 23, 2011
Gemfile.lock bumped version Nov 23, 2011
README.md Update README.md Mar 11, 2012
Rakefile Created blank fuzzy gem Nov 23, 2011
fuzzy.gemspec first passing proper spec Nov 23, 2011

README.md

METHOD MISSING?

NOPE!

Tired of bugs because of typos?

Let fuzzy come to the rescue

class Account
  include Fuzzy

  def pay! other_account, amount
    other_account.balance += amount
    balance -= amount
  end
end

jeff = Account.find 1
a = Account.find 123
a.balance
#=> 10.0

a.paid? jeff, 10
#=> 0.0

What could possibly go wrong?

Nothing! No more pesky exceptions, no more whiny ruby interpreter incapable of making sensible guesses about what you actually meant.

Come on Ruby! Use some common sense.

Something went wrong with that request. Please try again.