Results for: "remove_const"

Creates a vector from an Array. The optional second argument specifies whether the array itself or a copy is used internally.

No documentation available

Directs to reject specified class argument.

t

Argument class specifier, any object including Class.

reject(t)

See reject.

Release code

Returns version string from program_name, version and release.

Returns the regexp.

m = /a.*b/.match("abc")
m.regexp #=> /a.*b/

Returns the array of captures; equivalent to mtch.to_a[1..-1].

f1,f2,f3,f4 = /(.)(.)(\d+)(\d)/.match("THX1138.").captures
f1    #=> "H"
f2    #=> "X"
f3    #=> "113"
f4    #=> "8"

This says “you can break a line here if necessary”, and a width-column text sep is inserted if a line is not broken at the point.

If sep is not specified, “ ” is used.

If width is not specified, sep.length is used. You will have to specify this when sep is a multibyte character, for example.

Returns true if int is an even number.

Returns the Integer equal to int - 1.

1.pred      #=> 0
(-1).pred   #=> -2

Returns int modulo other.

See Numeric#divmod for more information.

See Numeric#divmod.

Looks up the first IP address for name.

Looks up all IP address for name.

Looks up the first IP address for name.

Looks up all IP address for name.

Returns true if the set contains no elements.

Replaces the contents of the set with the contents of the given enumerable object and returns self.

No documentation available

Equivalent to Set#delete_if, but returns nil if no changes were made. Returns an enumerator if no block is given.

No documentation available

Creates a temporary file as usual File object (not Tempfile). It doesn’t use finalizer and delegation.

If no block is given, this is similar to Tempfile.new except creating File instead of Tempfile. The created file is not removed automatically. You should use File.unlink to remove it.

If a block is given, then a File object will be constructed, and the block is invoked with the object as the argument. The File object will be automatically closed and the temporary file is removed after the block terminates. The call returns the value of the block.

In any case, all arguments (+*args+) will be treated as Tempfile.new.

Tempfile.create('foo', '/home/temp') do |f|
   ... do something with f ...
end

Returns true if there are no threads in the pool still running.

Returns true if there are no threads in the pool still running.

Search took: 4ms  ·  Total Results: 3739