Module: EasyEncryption::InstanceMethods
- Defined in:
- lib/easy_encryption/instance_methods.rb
Instance Method Summary collapse
-
#decrypt ⇒ Object
decrypts a string.
-
#encrypt ⇒ Object
encrypts a string.
-
#simple_box ⇒ Object
references simple_box on the singleton class.
Instance Method Details
#decrypt ⇒ Object
decrypts a string
11 12 13 |
# File 'lib/easy_encryption/instance_methods.rb', line 11 def decrypt simple_box.decrypt self end |
#encrypt ⇒ Object
encrypts a string
6 7 8 |
# File 'lib/easy_encryption/instance_methods.rb', line 6 def encrypt simple_box.encrypt self end |
#simple_box ⇒ Object
references simple_box on the singleton class
16 17 18 |
# File 'lib/easy_encryption/instance_methods.rb', line 16 def simple_box self.class.simple_box end |