Skip to content

Commit c54743c

Browse files
committed
Ruby: Include class methods in model editor query
1 parent 78125a7 commit c54743c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ruby/ql/src/utils/modeleditor/ModelEditor.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ class Endpoint extends DataFlow::MethodNode {
4141
string getTypeName() {
4242
result =
4343
any(DataFlow::ModuleNode m | m.getOwnInstanceMethod(this.getMethodName()) = this)
44-
.getQualifiedName()
44+
.getQualifiedName() or
45+
result =
46+
any(DataFlow::ModuleNode m | m.getOwnSingletonMethod(this.getMethodName()) = this)
47+
.getQualifiedName() + "!"
4548
}
4649

4750
/**

0 commit comments

Comments
 (0)