# File lib/xml/rexml_ext.rb, line 142 def each_on_axis(axis, &block) send :"each_on_axis_#{axis}", &block end
# File lib/xml/rexml_ext.rb, line 118 def each_on_axis_child if respond_to? :attributes attributes.each_key do |name| yield XML::XXPath::Accessors::Attribute.new(self, name, false) end end each_child do |c| yield c end end
# File lib/xml/rexml_ext.rb, line 129 def each_on_axis_descendant(&block) each_on_axis_child do |c| block.call c if REXML::Parent===c c.each_on_axis_descendant(&block) end end end
# File lib/xml/rexml_ext.rb, line 138 def each_on_axis_self yield self end