Method: PlainText::Part#each_boundary_with_index

Defined in:
lib/plain_text/part.rb

#each_boundary_with_index(**kwd, &bl) ⇒ Object

each method for boundaries only, providing also the index (always an odd number) to the block.

For just looping over the elements of #boundaries, do simply

boundaries.each do |ec|
end

The indices provided in this method are for the main Array, and hence different from #boundaries.each_with_index

Parameters:

  • recursive: (Hash)

    a customizable set of options

Returns:

  • as self



165
166
167
# File 'lib/plain_text/part.rb', line 165

def each_boundary_with_index(**kwd, &bl)
  map_boundary_core(map: false, with_index: true, **kwd, &bl)
end