Method: IOP::StringSplitter#process!
- Defined in:
- lib/iop/string.rb
#process! ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/iop/string.rb', line 31 def process! offset = 0 (0..@string.size / @block_size - 1).each do process(@string[offset, @block_size]) offset += @block_size end process(offset.zero? ? @string : @string[offset..-1]) unless offset == @string.size process end |