Sha256: 85bfdf1303ea86659118fede51a7c3becd163bfce9ce19283615116787dd7bc6
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
require 'jwe/zip/def' module JWE module Zip def self.for(zip) klass = zip.gsub(/[-\+]/, '_').downcase.sub(/^[a-z\d]*/) { $&.capitalize } klass.gsub!(/_([a-z\d]*)/i) { $1.capitalize } const_get(klass) rescue NameError raise NotImplementedError.new("Unsupported zip type: #{zip}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jwe-0.1.0 | lib/jwe/zip.rb |