Module: JWE::Zip

Defined in:
lib/jwe/zip.rb,
lib/jwe/zip/def.rb

Overview

Message deflating algorithms namespace

Defined Under Namespace

Classes: Def

Class Method Summary collapse

Class Method Details

.for(zip) ⇒ Object


6
7
8
9
10
# File 'lib/jwe/zip.rb', line 6

def self.for(zip)
  const_get(JWE.param_to_class_name(zip))
rescue NameError
  raise NotImplementedError.new("Unsupported zip type: #{zip}")
end