Module: REXML::Functions
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Defined in: | lib/rexml/functions.rb |
Overview
If you add a method, keep in mind two things: (1) the first argument will always be a list of nodes from which to filter. In the case of context methods (such as position), the function should return an array with a value for each child in the array. (2) all method calls from XML will have "-" replaced with "_". Therefore, in XML, "local-name()" is identical (and actually becomes) "local_name()"
Constant Summary
-
INTERNAL_METHODS =
# File 'lib/rexml/functions.rb', line 16[ :namespace_context, :namespace_context=, :variables, :variables=, :context=, :get_namespace, :send, ]
Class Method Summary
Class Method Details
.singleton_method_added(name)
[ GitHub ]# File 'lib/rexml/functions.rb', line 26
def singleton_method_added(name) unless INTERNAL_METHODS.include?(name) @@available_functions[name] = true end end