module Frubby::MethodMissing
Constants
- EXCLUDED_METHODS
- KERNEL_METHODS
Public Instance Methods
method_missing(method_sym, *args, &block)
click to toggle source
Calls superclass method
# File lib/frubby/method_missing.rb, line 13 def method_missing(method_sym, *args, &block) return super if EXCLUDED_METHODS.include? method_sym _methods = KERNEL_METHODS + methods _method = FuzzyMatch.new(_methods).find(method_sym.to_s) warn "[frubby] method_missing: #{method_sym} -> #{_method}" if $DEBUG _method.is_a?(Symbol) ? send(_method.to_sym, *args, &block) : super end