method

local_method?

ruby latest stable - Class: Bundler::Thor::Command

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

local_method?(instance, name)
protected

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/command.rb, line 87
    def local_method?(instance, name)
      methods = instance.public_methods(false) + instance.private_methods(false) + instance.protected_methods(false)
      !(methods & [name.to_s, name.to_sym]).empty?
    end