hamstergem/hamster — pull request #154 by dubek (2014-11-03 17:09:10+00:00)
Title: Deque#pop, Deque#shift: when empty, return empty object of same class

Currently when calling `#pop` or `#shift` on an empty subclass of `Deque` we return an empty `Hamster::Deque` instead of the subclass.

```ruby
class MyDeque < Hamster::Deque
end

my_deque = MyDeque.new
my_deque.class
# => MyDeque
my_deque.pop.class
# => Hamster::Deque
```

This PR fixes it (uses `self.class.empty`).