Project

General

Profile

Feature #4688 » functions.patch

smartinez87 (Sebastian Martinez), 05/13/2011 10:17 PM

View differences:

lib/rexml/functions.rb
end
end
# Returns the last node of the given list of nodes.
def Functions::last( )
@@context[:size]
end
......
@@context[:index]
end
# Returns the size of the given list of nodes.
def Functions::count( node_set )
node_set.size
end
......
end
end
# A node-set is converted to a string by
# returning the concatenation of the string-value
# of each of the childrens of the node in the
# node-set that is first in document order.
# If the node-set is empty, an empty string is returned.
def Functions::string_value( o )
rv = ""
o.children.each { |e|
(1-1/2)