Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ole/support.rb
Overview
:nodoc:
Direct Known Subclasses
Ole::Types::Clsid, Ole::Types::Data, Ole::Types::Lpstr, Ole::Types::Lpwstr
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 |