Ruby REXML::Functions Functions
EditRocket provides the following information on REXML::Functions functions in the Ruby source code builder.
boolean( object=nil ) - UNTESTED
ceiling( number ) -
compare_language(lang1, lang2) -
concat( *objects ) - UNTESTED
contains( string, test ) - Fixed by Mike Stok
context=(value) -
count( node_set ) -
"false"( ) - UNTESTED
floor( number ) -
get_namespace( node_set = nil ) - Helper method.
id( object ) - Since REXML is non-validating, this method is not implemented as it requires a DTD
lang( language ) - UNTESTED
last( ) -
local_name( node_set=nil ) - UNTESTED
method_missing( id ) -
name( node_set=nil ) -
namespace_context=(x) -
namespace_context() -
namespace_uri( node_set=nil ) -
normalize_space( string=nil ) - UNTESTED
not( object ) - UNTESTED
number( object=nil ) - a string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN
position( ) -
processing_instruction( node ) -
round( number ) -
starts_with( string, test ) - Fixed by Mike Stok
string( object=nil ) - A node-set is converted to a string by returning the string-value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned.
string_length( string ) - UNTESTED
string_value( o ) -
substring( string, start, length=nil ) - Take equal portions of Mike Stok and Sean Russell; mix vigorously, and pour into a tall, chilled glass. Serves 10,000.
substring_after( string, test ) - Kouhei fixed this too
substring_before( string, test ) - Kouhei fixed this
sum( nodes ) -
text( ) -
translate( string, tr1, tr2 ) - This is entirely Mike Stok's beast
"true"( ) - UNTESTED
variables=(x) -
variables() -