class Shrine::InvalidFile

  1. lib/shrine.rb
Superclass: Error

Raised when a file is not a valid IO.

Methods

Public Class

  1. new

Public Class methods

new (io, missing_methods)
[show source]
# File lib/shrine.rb, line 14
def initialize(io, missing_methods)
  super "#{io.inspect} is not a valid IO object (it doesn't respond to #{missing_methods.map{|m, args|"##{m}"}.join(", ")})"
end