Results for: "to_proc"

Transform a location into a token that the parser gem expects.

Is this tar entry a directory?

No documentation available

Returns all tokens for the input script regardless the receiver node. Returns nil if keep_tokens is not enabled when parse method is called.

root = RubyVM::AbstractSyntaxTree.parse("x = 1 + 2", keep_tokens: true)
root.all_tokens # => [[0, :tIDENTIFIER, "x", [1, 0, 1, 1]], [1, :tSP, " ", [1, 1, 1, 2]], ...]
root.children[-1].all_tokens # => [[0, :tIDENTIFIER, "x", [1, 0, 1, 1]], [1, :tSP, " ", [1, 1, 1, 2]], ...]

Sets p, q for the RSA instance.

Get the response’s token info if present.

No documentation available
No documentation available

Build the parser gem tokens from the prism tokens.

Visit the string content of a particular node. This method is used to split into the various token types.

No documentation available

foo { |; bar| }

^^^

foo { |; bar| }

^^^
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Tells ‘scan_while` to look for mismatched keyword/end-s

When scanning up, if we see more keywords then end-s it will stop. This might happen when scanning outside of a method body. the first scan line up would be a keyword and this setting would trigger a stop.

When scanning down, stop if there are more end-s than keywords.

Create a new SingletonClassNode node.

Search took: 5ms  ·  Total Results: 2407