1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

ring: alias #count as #size

This is for backwards compatibility. Pry Rails uses `#size`:
77f770f376/lib/pry-rails/prompt.rb (L23)
This commit is contained in:
Kyrylo Silin 2018-11-04 00:41:46 +08:00
parent a61115ceba
commit d2de775095

View file

@ -24,6 +24,7 @@ class Pry
# @return [Integer] how many objects were added during the lifetime of the
# ring
attr_reader :count
alias size count
# @param [Integer] max_size Maximum buffer size. The buffer will start
# overwriting elements once its reaches its maximum capacity