PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
REXML
/
Element
--- !ruby/object:RI::MethodDescription aliases: [] block_params: Element comment: - !ruby/struct:SM::Flow::P body: Iterates through the children, yielding for each Element that has a particular text set. - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "text:" body: the text to search for. If nil, or not supplied, will iterate over all <tt>Element</tt> children that contain at least one <tt>Text</tt> node. - !ruby/struct:SM::Flow::LI label: "max:" body: (optional) causes this method to return after yielding for this number of matching children - !ruby/struct:SM::Flow::LI label: "name:" body: (optional) if supplied, this is an XPath that filters the children to check. type: :NOTE - !ruby/struct:SM::Flow::VERB body: " doc = Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>'\n # Yields b, c, d\n doc.each_element_with_text {|e|p e}\n # Yields b, c\n doc.each_element_with_text('b'){|e|p e}\n # Yields b\n doc.each_element_with_text('b', 1){|e|p e}\n # Yields d\n doc.each_element_with_text(nil, 0, 'd'){|e|p e}\n" full_name: REXML::Element#each_element_with_text is_singleton: false name: each_element_with_text params: ( text=nil, max=0, name=nil ) {|Element| ...} visibility: public
[-] add_element-i.yaml
[edit]
[-] delete_attribute-i.yaml
[edit]
[-] document-i.yaml
[edit]
[-] delete_namespace-i.yaml
[edit]
[-] raw-i.yaml
[edit]
[-] each_element_with_attribute-i.yaml
[edit]
[-] cdesc-Element.yaml
[edit]
[-] whitespace-i.yaml
[edit]
[-] get_elements-i.yaml
[edit]
[-] get_text-i.yaml
[edit]
[-] namespace-i.yaml
[edit]
[-] add_attribute-i.yaml
[edit]
[-] namespaces-i.yaml
[edit]
[-] has_text%3f-i.yaml
[edit]
[-] root-i.yaml
[edit]
[-] add_attributes-i.yaml
[edit]
[-] add_namespace-i.yaml
[edit]
[-] texts-i.yaml
[edit]
[+]
..
[-] inspect-i.yaml
[edit]
[-] has_elements%3f-i.yaml
[edit]
[-] add_text-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] text%3d-i.yaml
[edit]
[-] previous_element-i.yaml
[edit]
[-] each_element_with_text-i.yaml
[edit]
[-] attribute-i.yaml
[edit]
[-] node_type-i.yaml
[edit]
[-] write-i.yaml
[edit]
[-] has_attributes%3f-i.yaml
[edit]
[-] cdatas-i.yaml
[edit]
[-] instructions-i.yaml
[edit]
[-] ignore_whitespace_nodes-i.yaml
[edit]
[-] next_element-i.yaml
[edit]
[-] comments-i.yaml
[edit]
[-] clone-i.yaml
[edit]
[-] xpath-i.yaml
[edit]
[-] __to_xpath_helper-i.yaml
[edit]
[-] prefixes-i.yaml
[edit]
[-] text-i.yaml
[edit]
[-] delete_element-i.yaml
[edit]
[-] each_element-i.yaml
[edit]
[-] each_with_something-i.yaml
[edit]
[-] root_node-i.yaml
[edit]