Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Use method missing to just execute the closest match to the method you tried to call
Ruby
branch: master

Merge pull request #1 from Holek/patch-1

Nope
latest commit 4ac8500375
Mark Burns authored
Failed to load latest commit information.
lib cache the matcher
spec updated Fuzzy
.gitignore pkg dir to gitignore
Gemfile first passing proper spec
Gemfile.lock bumped version
README.md Update README.md
Rakefile
fuzzy.gemspec first passing proper spec

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.