Skip to content

Documentation


Documentation / @blazetrails/activesupport / included

Variable: included ​

const included: unique symbol

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

Symbol key for Ruby's Module#included callback, which rb_mod_include fires on the module once append_features has spliced it into the ancestry (vendor/ruby/v3.3.11/eval.c:1160). Using a symbol avoids collisions with real method names.

No Rails Equivalent ​

PERMANENT — Ruby names the hook with an ordinary method definition on the module; TypeScript has no such lifecycle hook, so the key carries the name instead.