Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/fuzzy-ruby/api.rb
Overview
hook into method_missing on Object
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
88 89 90 91 92 93 94 |
# File 'lib/fuzzy-ruby/api.rb', line 88 def method_missing name, *args, &block if FuzzyRuby.enabled? FuzzyRuby.send :autocorrect, binding.of_caller(1), self, name, args, block else __fuzzyruby_method_missing_old__ name, *args, &block end end |
Instance Method Details
#__fuzzyruby_method_missing_old__ ⇒ Object
87 |
# File 'lib/fuzzy-ruby/api.rb', line 87 alias_method :__fuzzyruby_method_missing_old__, :method_missing |