lib/inochi/tasks/3-ann.rake
##
# Fetches all nodes between those matching the given head and tail selectors.
#
Fetches all nodes between those matching the given head and tail selectors.
Fetches all nodes between those matching the given head and tail selectors .
def fetch_nodes_between head_selector, tail_selector
  Rake::Task[:@man_html_dom].invoke
  head = @man_html_dom.at(head_selector) or raise head_selector
  body = []
  tail = head
  body << tail while
    tail = tail.next_sibling and
    not tail.matches? tail_selector
  [head, body, tail]
end
def fetch_nodes_between head_selector , tail_selector Rake :: Task [ :@man_html_dom ] . invoke head = @man_html_dom . at ( head_selector ) or raise head_selector body = [ ] tail = head body << tail while tail = tail . next_sibling and not tail . matches? tail_selector [ head , body , tail ] end
Fetches all nodes between those matching the given head and tail selectors.
Fetches all nodes between those matching the given head and tail selectors .
head_selector
tail_selector