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

file?, #length, new, #to_io

Constructor Details

#initialize(boundary) ⇒ EpiloguePart


121
122
123
124
# File 'lib/parts.rb', line 121

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