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

Function isRubyHookCall

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

Source from the content-addressed store, hash-verified

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

Callers 1

normalizeSpecialFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected