Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.       class Chef::EncryptedDataBagItem
  2.         def [](key)
  3.           value = @enc_hash[key]
  4.           if key == "id" || value.nil?
  5.             value
  6.           else
  7.             self.class.decrypt_value(value, @secret)
  8.           end
  9.         end
  10.       end