class Contracts::SingletonMethodReference
The same as MethodReference
, but used for singleton methods.
Private Instance Methods
Source
# File lib/contracts/method_reference.rb, line 98 def alias_target(this) Support.eigenclass_of this end
Return alias target for singleton methods.
Source
# File lib/contracts/method_reference.rb, line 89 def private?(this) this.private_methods.map(&:to_sym).include?(name) end
Source
# File lib/contracts/method_reference.rb, line 93 def protected?(this) this.protected_methods.map(&:to_sym).include?(name) end