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

Function isRubyHookCall

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

Source from the content-addressed store, hash-verified

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

Callers 1

normalizeSpecialFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected