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:
parent
a61115ceba
commit
d2de775095
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue