Create a new IndexOrWriteNode
node
Create a new InstanceVariableReadNode
node
Create a new InstanceVariableTargetNode
node
Create a new InterpolatedStringNode
node
Create a new InterpolatedXStringNode
node
Create a new LocalVariableReadNode
node
Create a new LocalVariableTargetNode
node
Create a new MatchWriteNode
node
Create a new MultiWriteNode
node
Create a new PinnedVariableNode
node
Create a new ReturnNode
node
Create a new SourceEncodingNode
node
Create a new SourceFileNode
node
Create a new SourceLineNode
node
Create a new StringNode
node
Create a new XStringNode
node
Generate a random alphanumeric string.
The argument n specifies the length, in characters, of the alphanumeric string to be generated. The argument chars specifies the character list which the result is consist of.
If n is not specified or is nil, 16 is assumed. It may be larger in the future.
The result may contain A-Z, a-z and 0-9, unless chars is specified.
require 'random/formatter' Random.alphanumeric #=> "2BuBuLf3WfSKyQbR" # or prng = Random.new prng.alphanumeric(10) #=> "i6K93NdqiH" Random.alphanumeric(4, chars: [*"0".."9"]) #=> "2952" # or prng = Random.new prng.alphanumeric(10, chars: [*"!".."/"]) #=> ",.,++%/''."
Writes pemmable
, which must respond to to_pem
to path
with the given permissions
. If passed cipher
and passphrase
those arguments will be passed to to_pem
.
Dispatch enter and leave events for ClassVariableWriteNode
nodes and continue walking the tree.