capture2e

capture2e(*cmd) Class Public methods ::capture2e captures the standard output and the standard error of a command. stdout_and_stderr_str, status = Open3.capture2e([env,] cmd... [, opts]) The arguments env, cmd and opts are passed to ::popen3 except opts and opts. See Process.spawn. If opts is specified, it is sent to the command's standard input. If opts is true, internal pipes are set to binary mode. Example: # capture make log make_log, s = Open3.capture2e("make")

isjis

String#isjis => true or false Instance Public methods Returns whether self's encoding is ISO-2022-JP or not.

finish_page_dir

finish_page_dir() Instance Public methods Fixes the #page_dir to be relative to the root_dir and adds the #page_dir to the files list.

+

+(enum) Instance Public methods Alias for: |

popen2

popen2(*cmd, &block) Class Public methods ::popen2 is similer to ::popen3 except it doesn't make a pipe for the standard error stream. Block form: Open3.popen2([env,] cmd... [, opts]) {|stdin, stdout, wait_thr| pid = wait_thr.pid # pid of the started process. ... exit_status = wait_thr.value # Process::Status object returned. } Non-block form: stdin, stdout, wait_thr = Open3.popen2([env,] cmd... [, opts]) ... stdin.close # stdin and stdout should be closed explicitly in

new

StringIO.new(string=""[, mode]) Class Public methods Creates new StringIO instance from with string and mode.

delete

delete(page) Instance Public methods

add

add(value) Instance Public methods

serialize

serialize(attr_name, class_name_or_coder = Object) Instance Public methods If you have an attribute that needs to be saved to the database as an object, and retrieved as the same object, then specify the name of that attribute using this method and it will be handled automatically. The serialization is done through YAML. If class_name is specified, the serialized object must be of that class on retrieval or SerializationTypeMismatch will be raised. A notable side effect of serializ

delete

delete(action, *args) Instance Public methods Simulate a DELETE request with the given parameters and set/volley the response. See get for more details.