Module: Lite::Containers::TopN::Deque

Includes:
Abstract::Deque
Included in:
AvlTree
Defined in:
lib/lite/containers/top_n/deque.rb

Instance Method Summary collapse

Methods included from Abstract::Queue

#drain!

Instance Method Details

#backObject



23
24
25
# File 'lib/lite/containers/top_n/deque.rb', line 23

def back
  @backend.back
end

#frontObject



15
16
17
# File 'lib/lite/containers/top_n/deque.rb', line 15

def front
  @backend.front
end

#popObject



11
12
13
# File 'lib/lite/containers/top_n/deque.rb', line 11

def pop
  pop_back
end

#pop_backObject



27
28
29
# File 'lib/lite/containers/top_n/deque.rb', line 27

def pop_back
  @backend.pop_back
end

#pop_frontObject



19
20
21
# File 'lib/lite/containers/top_n/deque.rb', line 19

def pop_front
  @backend.pop_front
end