Sha256: 0d651a65a3a6f648cd27ebe3c94d46e83b995b318d3e3b14ccdce3981d23324d
Contents?: true
Size: 350 Bytes
Versions: 319
Compression:
Stored size: 350 Bytes
Contents
## Advanced It is typical to call [#to_enum](http://ruby-doc.org/core-2.3.1/Object.html#method-i-to_enum) when defining methods for a generic Enumerable, in case no block is passed. Here is an additional test you could add: ```ruby def test_no_block_is_passed skip result = [1, 2, 3].accumulate assert_instance_of Enumerator, result end ```
Version data entries
319 entries across 319 versions & 1 rubygems