class Marshal::Structure::EndOfMarshal

Raised when the Marshal stream is at the end

Attributes

consumed[R]

Number of bytes of Marshal stream consumed

requested[R]

Requested number of bytes that was not fulfillable

Public Class Methods

new(consumed, requested) click to toggle source

Creates a new EndOfMarshal exception. Marshal::Structure previously read consumed bytes and was unable to fulfill the request for requested additional bytes.

Calls superclass method
# File lib/marshal/structure.rb, line 54
def initialize consumed, requested
  @consumed = consumed
  @requested = requested

  super "consumed #{consumed} bytes, requested #{requested} more"
end