Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ole/support.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#each_chunk(size) ⇒ Object



14
15
16
# File 'lib/ole/support.rb', line 14

def each_chunk size
	(length / size.to_f).ceil.times { |i| yield self[i * size, size] }
end