Results for: "remove_const"

No documentation available

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

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.

set = Set[1, 'c', :s]             #=> #<Set: {1, "c", :s}>
set.replace([1, 2])               #=> #<Set: {1, 2}>
set                               #=> #<Set: {1, 2}>
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

Resets the internal state after modification to existing elements and returns self.

Elements will be reindexed and deduplicated.

Returns whether sym is :“” or not.

Returns the parent directory.

This is same as self + '..'.

Returns true if self points to a mountpoint.

Returns the children of the directory (files and subdirectories, not recursive) as an array of Pathname objects.

By default, the returned pathnames will have enough information to access the files. If you set with_directory to false, then the returned pathnames will contain the filename only.

For example:

pn = Pathname("/usr/lib/ruby/1.8")
pn.children
    # -> [ Pathname:/usr/lib/ruby/1.8/English.rb,
           Pathname:/usr/lib/ruby/1.8/Env.rb,
           Pathname:/usr/lib/ruby/1.8/abbrev.rb, ... ]
pn.children(false)
    # -> [ Pathname:English.rb, Pathname:Env.rb, Pathname:abbrev.rb, ... ]

Note that the results never contain the entries . and .. in the directory because they are not children.

Recursively deletes a directory, including all directories beneath it.

See FileUtils.rm_r

Freezes this Pathname.

See Object.freeze.

Returns the real (absolute) pathname for self in the actual filesystem.

Does not contain symlinks or useless dots, .. and ..

All components of the pathname must exist when this method is called.

Returns the real (absolute) pathname of self in the actual filesystem.

Does not contain symlinks or useless dots, .. and ..

The last component of the real pathname can be nonexistent.

Returns all data from the file, or the first N bytes if specified.

See File.read.

Returns all the bytes from the file, or the first N if specified.

See File.binread.

Returns all the lines from the file.

See File.readlines.

Changes file permissions.

See File.chmod.

Same as Pathname.chmod, but does not follow symbolic links.

See File.lchmod.

Read symbolic link.

See File.readlink.

Rename the file.

See File.rename.

See FileTest.directory?.

See FileTest.readable?.

Search took: 3ms  ·  Total Results: 3444