MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isRubyHookCall

Function isRubyHookCall

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

Source from the content-addressed store, hash-verified

308const RUBY_HOOK_RE = /^(skip_)?(before|after|around)_[a-z_]+$/;
309const RUBY_HOOK_NAMES = new Set(['validate', 'set_callback', 'helper_method', 'rescue_from']);
310function isRubyHookCall(name: string): boolean {
311 return RUBY_HOOK_RE.test(name) || RUBY_HOOK_NAMES.has(name);
312}
313
314const SWIFT_SPEC: FnRefSpec = {
315 idTypes: new Set(['simple_identifier']),

Callers 1

normalizeSpecialFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected