Exception: Shrine::Plugins::ZipGuard::MissingFileError

Inherits:
Error
  • Object
show all
Defined in:
lib/shrine/plugins/zip_guard.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern) ⇒ MissingFileError

Returns a new instance of MissingFileError.



15
16
17
18
# File 'lib/shrine/plugins/zip_guard.rb', line 15

def initialize(pattern)
  @pattern = pattern
  super("Archive does not contain required file matching '#{pattern}'")
end

Instance Attribute Details

#patternObject (readonly)

Returns the value of attribute pattern.



13
14
15
# File 'lib/shrine/plugins/zip_guard.rb', line 13

def pattern
  @pattern
end