^

^(tag) Instance Public methods

read_file

read_file(filename, encoding, force_transcode = false) Class Public methods Reads the contents of filename and handles any encoding directives in the file. The content will be converted to the encoding. If the file cannot be converted a warning will be printed and nil will be returned. If force_transcode is true the document will be transcoded and any unknown character in the target encoding will be replaced with '?'

move_after

move_after(dest) Instance Public methods

to_s

to_s() Instance Public methods Alias for: name

exec

exec([env,] command... [,options]) Instance Public methods Replaces the current process by running the given external command. command⦠is one of following forms. commandline : command line string which is passed to the standard shell cmdname, arg1, ... : command name and one or more arguments (no shell) [cmdname, argv0], arg1, ... : command name, argv[0] and zero or more arguments (no shell) If single string is given as the command, it is taken as a comm

status

status() Instance Public methods

compact!

ary.compact! â ary or nil Instance Public methods Removes nil elements from the array. Returns nil if no changes were made, otherwise returns the array. [ "a", nil, "b", nil, "c" ].compact! #=> [ "a", "b", "c" ] [ "a", "b", "c" ].compact! #=> nil

platform=

platform=(platform) Instance Public methods The platform this gem runs on. This is usually Gem::Platform::RUBY or Gem::Platform::CURRENT. Most gems contain pure Ruby code; they should simply leave the default value in place. Some gems contain C (or other) code to be compiled into a Ruby âextensionâ. The should leave the default value in place unless their code will only compile on a certain type of system. Some gems consist of pre-compiled code (âbinary gemsâ). It's especially

run

run(b=new_toplevel) Instance Public methods Generate results and print them. (see #result)

popen3

popen3(*cmd, &block) Class Public methods Open stdin, stdout, and stderr streams and start external executable. In addition, a thread for waiting the started process is noticed. The thread has a pid method and thread variable :pid which is the pid of the started process. Block form: Open3.popen3([env,] cmd... [, opts]) {|stdin, stdout, stderr, wait_thr| pid = wait_thr.pid # pid of the started process. ... exit_status = wait_thr.value # Process::Status object returned. } N