delete

delete(element) Instance Public methods Deletes a child Element element Either an Element, which is removed directly; an xpath, where the first matching child is removed; or an Integer, where the n'th Element is removed. Returns the removed child doc = Document.new '<a><b/><c/><c id="1"/></a>' b = doc.root.elements[1] doc.root.elements.delete b #-> <a><c/><c id="1"/></a> doc.elements.delete("a/c[@id='1']")

deleteln

deleteln() Class Public methods Delete the line under the cursor.

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

[]=

[]=(sql, key) Instance Public methods

test_to_param

test_to_param() Instance Public methods Responds to to_param Returns a string representing the object's key suitable for use in URLs or nil if model.persisted? is false. Implementers can decide to either raise an exception or provide a default in case the record uses a composite primary key. There are no tests for this behavior in lint because it doesn't make sense to force any of the possible implementation strategies on the implementer. However, if the resource is not persisted?,

add

add(keys={}) Instance Public methods

ui= 2

ui=(new_ui) Instance Public methods See ::ui=

supports_primary_key?

supports_primary_key?() Instance Public methods Can this adapter determine the primary key for tables not attached to an Active Record class, such as join tables? Backend specific, as the abstract adapter always returns false.

value=

value=(vals) Instance Public methods

update_checksum

update_checksum() Instance Public methods Updates the TarHeader's checksum