Class: Parts::EpiloguePart

Inherits:
Object
  • Object
show all
Includes:
Part
Defined in:
lib/parts.rb

Overview

Represents the epilogue or closing boundary.

Instance Method Summary collapse

Methods included from Part

#length, new, #to_io

Constructor Details

#initialize(boundary) ⇒ EpiloguePart

Returns a new instance of EpiloguePart.



69
70
71
72
# File 'lib/parts.rb', line 69

def initialize(boundary)
  @part = "--#{boundary}--\r\n\r\n"
  @io = StringIO.new(@part)
end