Sha256: 1e3360d895ca366d65954654740f42055f0634677fc1da99112cda321314cb2d

Contents?: true

Size: 633 Bytes

Versions: 16

Compression:

Stored size: 633 Bytes

Contents

module Kernel
  
  # A helper method that calls Mack::Utils::Crypt::Keeper with the specified worker
  # and calls the encrypt method on that worker.
  def _encrypt(value, worker = :default)
    Mack::Utils::Crypt::Keeper.instance.worker(worker).encrypt(value)
  end
  
  # A helper method that calls Mack::Utils::Crypt::Keeper with the specified worker
  # and calls the decrypt method on that worker.
  def _decrypt(value, worker = :default)
    Mack::Utils::Crypt::Keeper.instance.worker(worker).decrypt(value)
  end
  
  # Returns Mack::Utils::GemManager
  def require_gems
    yield Mack::Utils::GemManager.instance
  end
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mack-0.4.2.1 lib/core_extensions/kernel.rb
mack-0.4.6 lib/core_extensions/kernel.rb
mack-0.4.7 lib/core_extensions/kernel.rb
mack-0.4.5 lib/core_extensions/kernel.rb
mack-0.4.2 lib/core_extensions/kernel.rb
mack-0.5.5.2 lib/core_extensions/kernel.rb
mack-0.5.5.1 lib/core_extensions/kernel.rb
mack-0.5.0 lib/core_extensions/kernel.rb
mack-0.5.5.3 lib/core_extensions/kernel.rb
mack-0.5.5.4 lib/core_extensions/kernel.rb
mack-0.5.5 lib/core_extensions/kernel.rb
mack-0.6.0.1 lib/core_extensions/kernel.rb
mack-0.6.0 lib/core_extensions/kernel.rb
mack-0.6.1.1 lib/mack/core_extensions/kernel.rb
mack-0.6.1.2 lib/mack/core_extensions/kernel.rb
mack-0.6.1 lib/mack/core_extensions/kernel.rb