nodeValue

nodeValue() Instance Public methods VARIANT nodeValue value stored in the node

new

new( source ) Class Public methods

map2

map2(v) Instance Public methods Like #collect2, but returns a Vector instead of an Array.

setup_params

setup_params(config, req, res) Instance Public methods This format specification is a subset of mod_log_config of Apache: %a Remote IP address %b Total response size %e{variable} Given variable in ENV %f Response filename %h Remote host name %{header}i Given request header %l Remote logname, always â-â %m Request method %{attr}n Given request attribute from req.attributes %{header}o Given response header %p Server's request port %{format}p The can

-

ary - other_ary â new_ary Instance Public methods Array Difference Returns a new array that is a copy of the original array, removing any items that also appear in other_ary. The order is preserved from the original array. It compares elements using their hash and eql? methods for efficiency. [ 1, 1, 2, 2, 3, 3, 4, 5 ] - [ 1, 2, 4 ] #=> [ 3, 3, 5 ] If you need set-like behavior, see the library class Set.

try_convert

IO.try_convert(obj) â io or nil Class Public methods Try to convert obj into an IO, using #to_io method. Returns converted IO or nil if obj cannot be converted for any reason. IO.try_convert(STDOUT) #=> STDOUT IO.try_convert("STDOUT") #=> nil require 'zlib' f = open("/tmp/zz.gz") #=> #<File:/tmp/zz.gz> z = Zlib::GzipReader.open(f) #=> #<Zlib::GzipReader:0x81d8744> IO.try_convert(z) #=> #<File:/tmp/zz.gz>

eval_proc 2

eval_proc(*args, &blk) Instance Public methods Also aliased as: call

dclone

dclone() Instance Public methods provides a unified clone operation, for REXML::XPathParser to use across multiple Object+ types

delete_all

delete_all(conditions = nil) Instance Public methods Deletes the records matching conditions without instantiating the records first, and hence not calling the destroy method nor invoking callbacks. This is a single SQL DELETE statement that goes straight to the database, much more efficient than destroy_all. Be careful with relations though, in particular :dependent rules defined on associations are not honored. Returns the number of rows affected. Post.delete_all("person_id = 5 A

set 2

set(data, keys=nil) Instance Public methods