Results for: "module_function"

Unless the gdbm object has been opened with the SYNC flag, it is not guaranteed that database modification operations are immediately applied to the database file. This method ensures that all recent modifications to the database are written to the file. Blocks until all writing operations to the disk have been finished.

Returns true if the given key k exists within the database. Returns false otherwise.

Returns a string containing a detailed summary of the keys and values.

Convert this range object to a printable form (using inspect to convert the begin and end objects).

Returns true if obj is an element of the range, false otherwise.

("a".."z").include?("g")   #=> true
("a".."z").include?("A")   #=> false
("a".."z").include?("cc")  #=> false

If you need to ensure obj is between begin and end, use cover?

("a".."z").cover?("cc")  #=> true

If begin and end are numeric, include? behaves like cover?

(1..3).include?(1.5) # => true

Identical to Enumerable#count, except it returns Infinity for endless ranges.

Produce a nicely formatted string-version of rxp. Perhaps surprisingly, #inspect actually produces the more natural version of the string than #to_s.

/ab+c/ix.inspect        #=> "/ab+c/ix"

Returns true if the set contains the given object.

Note that include? and member? do not test member equality using == as do other Enumerables.

See also Enumerable#include?

Returns true if the set and the given set have at least one element in common.

Set[1, 2, 3].intersect? Set[4, 5]   #=> false
Set[1, 2, 3].intersect? Set[3, 4]   #=> true

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

Deletes every element that appears in the given enumerable object and returns self.

No documentation available

Returns a string containing a human-readable representation of the set (“#<Set: {element1, element2, …}>”).

provides a unified clone operation, for REXML::XPathParser to use across multiple Object types

Returns the representation of sym as a symbol literal.

:fred.inspect   #=> ":fred"

Same as sym.to_s.downcase.intern.

The opposite of Pathname#absolute?

It returns false if the pathname begins with a slash.

p = Pathname.new('/im/sure')
p.relative?
    #=> false

p = Pathname.new('not/so/sure')
p.relative?
    #=> true

Returns pathname. This method is deprecated and will be removed in Ruby 3.2.

Returns the last access time for the file.

See File.atime.

Returns the birth time for the file. If the platform doesn’t have birthtime, raises NotImplementedError.

See File.birthtime.

Returns the last modified time of the file.

See File.mtime.

Update the access and modification times of the file.

See File.utime.

See FileTest.directory?.

See FileTest.sticky?.

Removes a file or directory, using File.unlink if self is a file, or Dir.unlink as necessary.

Search took: 5ms  ·  Total Results: 3881