Results for: "uri"

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.

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

Process.uid # => 1000

Returns the (real) group ID for the current process:

Process.gid # => 1000

Compile a ClassVariableWriteNode node

Compile a GlobalVariableWriteNode node

Compile a InstanceVariableWriteNode node

Compile a LocalVariableWriteNode node

Dispatch enter and leave events for ClassVariableWriteNode nodes and continue walking the tree.

Dispatch enter and leave events for GlobalVariableWriteNode nodes and continue walking the tree.

Dispatch enter and leave events for InstanceVariableWriteNode nodes and continue walking the tree.

Dispatch enter and leave events for LocalVariableWriteNode nodes and continue walking the tree.

Copy a ClassVariableWriteNode node

Copy a GlobalVariableWriteNode node

Copy a InstanceVariableWriteNode node

Copy a LocalVariableWriteNode node

Returns the Fiber scheduler, that was last set for the current thread with Fiber.set_scheduler if and only if the current fiber is non-blocking.

Returns true if the named file is writable by the real user and group id of this process. See access(3).

Note that some OS-level security features may cause this to return true even though the file is not writable by the real user/group.

If file_name is writable by others, returns an integer representing the file permission bits of file_name. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

file_name can be an IO object.

File.world_writable?("/tmp")                  #=> 511
m = File.world_writable?("/tmp")
sprintf("%o", m)                              #=> "777"

Returns the list of private methods accessible to obj. If the all parameter is set to false, only those methods in the receiver will be listed.

Returns an array of instance variable names for the receiver. Note that simply defining an accessor does not create the corresponding instance variable.

class Fred
  attr_accessor :a1
  def initialize
    @iv = 3
  end
end
Fred.new.instance_variables   #=> [:@iv]

Return a list of the local variable names defined where this NameError exception was raised.

Internal use only.

Search took: 3ms  ·  Total Results: 1201