Skip to content

Documentation


Documentation / @blazetrails/activesupport / moduleVisibility

Variable: moduleVisibility ​

const moduleVisibility: unique symbol

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

Symbol key for the per-section visibility record defineModule stamps onto the flat module object it returns. Symbol-keyed so it never collides with a real method name, and so Object.keys() consumers see the module unchanged.

The sections it records are the ones Ruby reads back through Module#private_instance_methods — vendor/ruby/v3.3.11/class.c:1927 rb_class_private_instance_methods.

No Rails Equivalent ​

PERMANENT — Ruby carries visibility on the method entry itself; a TS object literal has nowhere to put it but a side table.