Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Delegator#public_methods
(?untyped all) -> ::Array[::Symbol]
public_methods(all=true)
lib/delegate.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/delegate.rb, line 140
def public_methods(all=true)
__getobj__.public_methods(all) | super
end
Returns the methods available to this delegate object as the union of this object’s and __getobj__ public methods.