Skip to content

Commit 69fc599

Browse files
committed
Ruby: Add ql doc to lookupSingletonMethod
1 parent 48bdf13 commit 69fc599

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowDispatch.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,10 @@ private predicate singletonMethodOnModule(MethodBase method, string name, Module
736736
)
737737
}
738738

739+
/**
740+
* Holds if `method` is a singleton method named `name`, defined on module
741+
* `m`, or any transitive base class of `m`.
742+
*/
739743
pragma[nomagic]
740744
private MethodBase lookupSingletonMethod(Module m, string name) {
741745
singletonMethodOnModule(result, name, m)

0 commit comments

Comments
 (0)