soulcutter / saxerator

A SAX-based XML parser for parsing large files into manageable chunks
MIT License
128 stars 19 forks source link

Return an enumerator if no block is given #58

Closed soulcutter closed 6 years ago

soulcutter commented 7 years ago

This is the typical pattern for Enumerable objects, and was an oversight that it was not already-included here.

See http://ruby-doc.org/core-2.4.1/Object.html#method-i-to_enum

soulcutter commented 7 years ago

This needs a test

fanantoxa commented 6 years ago

@soulcutter Added test for this.