Module: Lite::Containers::TopN::Deque
Instance Method Summary collapse
Methods included from Abstract::Queue
Instance Method Details
#back ⇒ Object
23 24 25 |
# File 'lib/lite/containers/top_n/deque.rb', line 23 def back @backend.back end |
#front ⇒ Object
15 16 17 |
# File 'lib/lite/containers/top_n/deque.rb', line 15 def front @backend.front end |
#pop ⇒ Object
11 12 13 |
# File 'lib/lite/containers/top_n/deque.rb', line 11 def pop pop_back end |
#pop_back ⇒ Object
27 28 29 |
# File 'lib/lite/containers/top_n/deque.rb', line 27 def pop_back @backend.pop_back end |
#pop_front ⇒ Object
19 20 21 |
# File 'lib/lite/containers/top_n/deque.rb', line 19 def pop_front @backend.pop_front end |