Results for: "String#[]"

Create a new GlobalVariableTargetNode node

Create a new ImaginaryNode node

Create a new InNode node

Create a new IndexTargetNode node

Create a new IntegerNode node

Create a new InterpolatedRegularExpressionNode node

Create a new InterpolatedSymbolNode node

Create a new KeywordRestParameterNode node

Create a new LocalVariableReadNode node

Create a new LocalVariableTargetNode node

Create a new MatchWriteNode node

Create a new MultiWriteNode node

Create a new PinnedExpressionNode node

Create a new PostExecutionNode node

Create a new RangeNode node

Create a new RestParameterNode node

Create a new RetryNode node

Create a new SourceLineNode node

Create a new StatementsNode node

Create a new TrueNode 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.

The host to connect to either from the RUBYGEMS_HOST environment variable or from the user’s configuration

A Zlib::Inflate#inflate wrapper

Returns the (real) user ID of the current process.

Process.uid # => 1000
Search took: 8ms  ·  Total Results: 3744