class Shrine::InvalidFile

  1. lib/shrine.rb
Superclass: Error

Raised when a file is not a valid IO.

Methods

Public Class

  1. new

Public Instance

  1. message

Public Class methods

new (io, missing_methods)
[show source]
# File lib/shrine.rb, line 13
def initialize(io, missing_methods)
  @io, @missing_methods = io, missing_methods
end

Public Instance methods

message ()
[show source]
# File lib/shrine.rb, line 17
def message
  "#{@io.inspect} is not a valid IO object (it doesn't respond to #{missing_methods_string})"
end