Skip to content

Documentation


Documentation / @blazetrails/activesupport / publicInstanceMethods

Function: publicInstanceMethods() ​

publicInstanceMethods(mod, includeSuper?): string[]

Defined in: packages/ruby-compat/dist/include.d.ts:551

Mirrors: Ruby's Module#public_instance_methods — vendor/ruby/v3.3.11/class.c:1942 rb_class_public_instance_methods — the module's public instance methods, own-only when includeSuper is false.

Parameters ​

ParameterType
modobject | AnyClass | Module<Record<never, never>>
includeSuper?boolean

Returns ​

string[]

No Rails Equivalent ​

PERMANENT — a Ruby core method, not a Rails one.

Known limitation: TypeScript's private / protected are erased at runtime, so the class form cannot see them and reports every prototype member. Only a #-private field and a defineModule section are visible here; enforcement of the rest is a compare-time gate rather than this runtime walk.

includeSuper is inert on a Module, whose method table is one flat table of its own methods.