This project is closed and read-only.
Actions
Bug #119
closedSet#divide and SortedSet#divide raise NoMethodErrors when passed no block
Bug #119:
Set#divide and SortedSet#divide raise NoMethodErrors when passed no block
Description
=begin
Set[1].divide # => raises a NoMethodError: undefined method arity' for nil:NilClass SortedSet[1].divide # => raises a NoMethodError: undefined method arity' for nil:NilClass
Raising a LocalJumpError or returning an enumerator would be much more consistent with general behaviour in Ruby.
=end
Actions