Module: DidYouMean::MethodFinder::RubiniusSupport

Defined in:
lib/did_you_mean/finders/method_finder.rb

Class Method Summary collapse

Class Method Details

.new(exception) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/did_you_mean/finders/method_finder.rb', line 53

def self.new(exception)
  if exception.receiver === exception.frame_binding.eval("self")
    NameErrorFinders.new(exception)
  else
    MethodFinder.new(exception)
  end
end