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

Version Path
trackler-2.2.1.101 tracks/ruby/exercises/accumulate/.meta/hints.md
trackler-2.2.1.100 tracks/ruby/exercises/accumulate/.meta/hints.md
trackler-2.2.1.99 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.98 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.97 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.96 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.95 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.94 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.93 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.92 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.91 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.90 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.89 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.88 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.87 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.86 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.85 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.84 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.83 tracks/ruby/exercises/accumulate/HINTS.md
trackler-2.2.1.82 tracks/ruby/exercises/accumulate/HINTS.md