MCPcopy
hub / github.com/colbymchenry/codegraph / isRubyHookCall

Function isRubyHookCall

src/extraction/function-ref.ts:284–286  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

282const RUBY_HOOK_RE = /^(skip_)?(before|after|around)_[a-z_]+$/;
283const RUBY_HOOK_NAMES = new Set(['validate', 'set_callback', 'helper_method', 'rescue_from']);
284function isRubyHookCall(name: string): boolean {
285 return RUBY_HOOK_RE.test(name) || RUBY_HOOK_NAMES.has(name);
286}
287
288const SWIFT_SPEC: FnRefSpec = {
289 idTypes: new Set(['simple_identifier']),

Callers 1

normalizeSpecialFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected