module EasyEncryption::InstanceMethods
Public Instance Methods
decrypt()
click to toggle source
decrypts a string
# File lib/easy_encryption/instance_methods.rb, line 11 def decrypt simple_box.decrypt self end
encrypt()
click to toggle source
encrypts a string
# File lib/easy_encryption/instance_methods.rb, line 6 def encrypt simple_box.encrypt self end
simple_box()
click to toggle source
references simple_box
on the singleton class
# File lib/easy_encryption/instance_methods.rb, line 16 def simple_box self.class.simple_box end