diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2018-11-04 00:41:46 +0800 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2018-11-04 00:41:46 +0800 |
commit | d2de775095e8f6a2d4cb299040a87516a9fd9f3f (patch) | |
tree | f8727153ed3f914da4a2ca430a5065ea761bc2ef | |
parent | a61115ceba243e0f2eb719b9385be34c3cad6f79 (diff) | |
download | pry-d2de775095e8f6a2d4cb299040a87516a9fd9f3f.tar.gz |
ring: alias #count as #size
This is for backwards compatibility. Pry Rails uses `#size`:
https://github.com/rweng/pry-rails/blob/77f770f376077e37c69116dda39ff03ee7961f64/lib/pry-rails/prompt.rb#L23
-rw-r--r-- | lib/pry/ring.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pry/ring.rb b/lib/pry/ring.rb index eb7c891a..e46256f1 100644 --- a/lib/pry/ring.rb +++ b/lib/pry/ring.rb @@ -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 |