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