class Moguro::SingletonMethodReference

The same as MethodReference, but used for singleton methods.

Private Instance Methods

private?(this) click to toggle source
# File lib/moguro/method_reference.rb, line 37
def private?(this)
  this.private_methods.map(&:to_sym).include?(name)
end
protected?(this) click to toggle source
# File lib/moguro/method_reference.rb, line 41
def protected?(this)
  this.protected_methods.map(&:to_sym).include?(name)
end