AndrewVos/metherd-missing — pull request #2 by jasonnoble (2012-11-19 20:04:57+00:00)
Title: Print out where missing method was called from

* It would be a lot more helpful if this gem
helped you find mistyped method names
* Added code to print out a [MetherdMissing]
message when it's going to call a similarly
named method

Example ruby script:

# blah.rb
require 'metherd-missing'

"".emptry?

class MyClass
def self.blah
"Hello"
end
end

MyClass.blag

Example Output:

$ ruby -Ilib ./blah.rb
[MetherdMissing] emptry? called from ./blah.rb:3:in `

' not found, using similarly named empty? method
[MetherdMissing] blag called from ./blah.rb:11:in `

' not found, using similarly named blah method
$