mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
861f8bdfa9
If the original object responds to `size` method, `Enumerator#size` calls that method, otherwise return `nil`. CRuby returns the exact size for more cases (e.g. Enumerable::Lazy#size), but mruby has more limitations.