Results for: "module_function"

Returns the file extension appended to the names of modified files under in-place edit mode. This value can be set using ARGF.inplace_mode= or passing the -i switch to the Ruby binary.

Sets the filename extension for in-place editing mode to the given String. Each file being edited has this value appended to its filename. The modified file is saved under this new name.

For example:

$ ruby argf.rb file.txt

ARGF.inplace_mode = '.bak'
ARGF.each_line do |line|
  print line.sub("foo","bar")
end

Each line of file.txt has the first occurrence of “foo” replaced with “bar”, then the new line is written out to file.txt.bak.

No documentation available

Turns FIPS mode on or off. Turning on FIPS mode will obviously only have an effect for FIPS-capable installations of the OpenSSL library. Trying to do so otherwise will result in an error.

Examples

OpenSSL.fips_mode = true   # turn FIPS mode on
OpenSSL.fips_mode = false  # and off again

Removes a file path. This method ignores StandardError if force is true.

Removes a file path. This method ignores StandardError if force is true.

Takes a hash as its argument. The key is a symbol or an array of symbols. These symbols correspond to method names. The value is the accessor to which the methods will be delegated.

Creates a stub Makefile.

Processes the data contents of the “depend” file. Each line of this file is expected to be a file name.

Returns the output of findings, in Makefile format.

The mode needed to read a file as straight binary.

Returns the BubbleBabble encoded hash value of a given string.

Returns an integer representing the permission bits of stat. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

File.chmod(0644, "testfile")   #=> 1
s = File.stat("testfile")
sprintf("%o", s.mode)          #=> "100644"
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Returns the resulting hash value in a Bubblebabble encoded form.

Called before each event with line/column information.

No documentation available
No documentation available
No documentation available
No documentation available

Setter for the continue_timeout attribute.

Search took: 5ms  ·  Total Results: 3178