Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Delegator#protected_methods
protected_methods(all=true)
lib/delegate.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/delegate.rb, line 147
def protected_methods(all=true)
__getobj__.protected_methods(all) | super
end
Returns the methods available to this delegate object as the union of this object’s and __getobj__ protected methods.
See also
#methods
#public_methods
#method_missing
#__raise__
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0