# File lib/nanite/security/encrypted_document.rb, line 26 def self.from_data(encrypted_data) doc = EncryptedDocument.allocate doc.instance_variable_set(:@pkcs7, Nanite::PKCS7.new(encrypted_data)) doc end