The same as MethodReference, but used for singleton methods.
Return alias target for singleton methods.
# File lib/contracts/method_reference.rb, line 96 def alias_target(this) Support.eigenclass_of this end
# File lib/contracts/method_reference.rb, line 87 def private?(this) this.private_methods.map(&:to_sym).include?(name) end
# File lib/contracts/method_reference.rb, line 91 def protected?(this) this.protected_methods.map(&:to_sym).include?(name) end