Class: Multipart::Post::Parts::EpiloguePart

Inherits:
Object
  • Object
show all
Includes:
Part
Defined in:
lib/multipart/post/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

Returns a new instance of EpiloguePart.



141
142
143
144
# File 'lib/multipart/post/parts.rb', line 141

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