Class File::FileModuleReader
A read using the File module, e.g. the f.read call in
f = File.new("foo.txt")
puts f.read()
Import path
import codeql.ruby.frameworks.FilesDirect supertypes
Indirect supertypes
Predicates
| getADataNode | Gets a node that represents data read from the file system. |
| getAPathArgument | Gets an argument to this file system access that is interpreted as a path. |
Inherited predicates
| asCallable | Gets the callable corresponding to this block, lambda expression, or call to | from Node |
| asExpr | Gets the expression corresponding to this node, if any. | from Node |
| asParameter | Gets the parameter corresponding to this node, if any. | from Node |
| backtrack | Gets a node that may flow into this one using one heap and/or interprocedural step. | from LocalSourceNode |
| backtrack | Starts backtracking from this node using API graphs. | from Node |
| flowsTo | Holds if this | from LocalSourceNode |
| getADataNodeImpl | Gets a node representing the data read or written by this call | from IOOrFileReadMethodCall |
| getALocalSource | Gets a local source node from which data may flow to this node in zero or more local data-flow steps. | from Node |
| getALocalUse | Gets a node to which data may flow from this node in zero or more local data-flow steps. | from LocalSourceNode |
| getAMethodCall | Gets a method call where this node flows to the receiver. | from LocalSourceNode |
| getAMethodCall | Gets a call to a method named | from LocalSourceNode |
| getAPathArgumentImpl | from IOOrFileMethodCall | |
| getAPredecessor | Gets a data flow node from which data may flow to this node in one local step. | from Node |
| getASuccessor | Gets a data flow node to which data may flow from this node in one local step. | from Node |
| getATarget | Gets a potential target of this call, if any. | from CallNode |
| getAnAttributeRead | Gets a call | from LocalSourceNode |
| getAnAttributeWriteValue | Gets a value assigned to | from LocalSourceNode |
| getAnElementRead | Gets an access to an element on this node, such as | from LocalSourceNode |
| getAnElementRead | Gets an access to the element | from LocalSourceNode |
| getAnElementWriteValue | Gets a value stored as an element on this node, such as the | from LocalSourceNode |
| getAnElementWriteValue | Gets the | from LocalSourceNode |
| getApi | Gets the API used to perform this call, either “IO” or “File” | from IOOrFileReadMethodCall |
| getArgument | Gets the data-flow node corresponding to the | from CallNode |
| getBlock | Gets the block of this call. | from CallNode |
| getConstantValue | Gets the constant value of this expression, if any. | from Node |
| getEnclosingMethod | Gets the enclosing method, if any. | from Node |
| getExprNode | Gets the expression corresponding to this node. | from ExprNode |
| getKeywordArgument | Gets the data-flow node corresponding to the named argument of the call corresponding to this data-flow node | from CallNode |
| getKeywordArgumentIncludeHashArgument | Gets the data-flow node corresponding to the named argument of the call corresponding to this data-flow node, also including values passed with (pre Ruby 2.0) hash arguments. | from CallNode |
| getLocation | Gets the location of this node. | from Node |
| getMethodName | Gets the name of the method called by the method call (if any) corresponding to this data-flow node | from CallNode |
| getNumberOfArguments | Gets the number of arguments of this call. | from CallNode |
| getPositionalArgument | Gets the | from CallNode |
| getReceiver | Gets the data-flow node corresponding to the receiver of the call corresponding to this data-flow node | from CallNode |
| getReceiverKind | Gets a string representation of the receiver kind, either “class” or “instance”. | from IOOrFileReadMethodCall |
| hasLocationInfo | Holds if this element is at the specified location. The location spans column | from Node |
| isSuperCall | Holds if this is a | from CallNode |
| spawnsSubprocess | Holds if this call appears to read/write from/to a spawned subprocess, rather than to/from a file. | from IOOrFileMethodCall |
| toString | Gets a textual representation of this node. | from Node |
| track | Starts tracking this node forward using API graphs. | from LocalSourceNode |
| track | Gets a node that this node may flow to using one heap and/or interprocedural step. | from LocalSourceNode |