private_class_method

mod.private_class_method(symbol, ...) â mod Instance Public methods Makes existing class methods private. Often used to hide the default constructor new. class SimpleSingleton # Not thread safe private_class_method :new def SimpleSingleton.create(*args, &block) @me = new(*args, &block) if ! @me @me end end

capture3

capture3(*cmd) Class Public methods ::capture3 captures the standard output and the standard error of a command. stdout_str, stderr_str, status = Open3.capture3([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: # dot is a command of graphviz. graph = <<'End' digraph g { a

==

ec == other â true or false Instance Public methods

inspect

struct.to_s â stringstruct.inspect â string Instance Public methods Describe the contents of this struct in a string. to_s

to_json

to_json(*args) Instance Public methods Stores class name (Struct) with Struct values v as a JSON string. Only named structs are supported.

new

new(options, markup = nil) Class Public methods Creates a new formatter that will output HTML

on_error

on_error(t, val, vstack) Instance Public methods This method is called when a parse error is found. ERROR_TOKEN_ID is an internal ID of token which caused error. You can get string representation of this ID by calling token_to_str. ERROR_VALUE is a value of error token. value_stack is a stack of symbol values. DO NOT MODIFY this object. This method raises ParseError by default. If this method returns, parsers enter âerror recovering modeâ.

selectNodes

selectNodes(arg0) Instance Public methods IXMLDOMNodeList selectNodes execute query on the subtree BSTR arg0 --- queryString [IN]

state_linkage

state_linkage(name) Instance Public methods

transformNode

transformNode(arg0) Instance Public methods BSTR transformNode apply the stylesheet to the subtree IXMLDOMNode arg0 --- stylesheet [IN]