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
22 def initialize(io, missing_methods)
23   super "#{io.inspect} is not a valid IO object (it doesn't respond to #{missing_methods.map{|m, _|"##{m}"}.join(", ")})"
24 end