class Xml::Kit::Crypto::BlockRegistry

Public Class Methods

new(&factory) click to toggle source
# File lib/xml/kit/crypto.rb, line 23
def initialize(&factory)
  @factory = factory
end

Public Instance Methods

cipher_for(algorithm, key) click to toggle source
# File lib/xml/kit/crypto.rb, line 27
def cipher_for(algorithm, key)
  @factory.call(algorithm, key)
end