Issue #13933 has been updated by marcandre (Marc-Andre Lafortune).


Note that `Range#size` currently returns `nil` for ranges of string, so it's not clear what `empty?` would return for ranges of strings.

----------------------------------------
Feature #13933: Add Range#empty?
https://bugs.ruby-lang.org/issues/13933#change-66859

* Author: ted (Ted Johansson)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Range already responds to #size. It would be nice if it also responded to predicate #empty? :-)



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>