Module: SiteMapper::Crawler::CrawlQueue::EnumerablePop

Defined in:
lib/site_mapper/crawler.rb

Overview

Add pop method when added to class. The class that extends this module need to implement #first and #delete.

Instance Method Summary collapse

Instance Method Details

#popObject

Pop first element from list.


111
112
113
114
115
# File 'lib/site_mapper/crawler.rb', line 111

def pop
  first_element = first
  delete(first_element)
  first_element
end