class REXML::Parent

Public Instance Methods

each_on_axis(axis, &block) click to toggle source
# File lib/xml/rexml_ext.rb, line 142
def each_on_axis(axis, &block)
  send :"each_on_axis_#{axis}", &block
end
each_on_axis_child() { |attribute| ... } click to toggle source
# 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
each_on_axis_descendant(&block) click to toggle source
# 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
each_on_axis_self() { |self| ... } click to toggle source
# File lib/xml/rexml_ext.rb, line 138
def each_on_axis_self
  yield self
end