Class: Travis::Encrypt::Decryptor

Inherits:
Base
  • Object
show all
Defined in:
lib/travis/encrypt/decryptor.rb

Instance Attribute Summary

Attributes inherited from Base

#key, #options, #string

Instance Method Summary collapse

Methods inherited from Base

#add_iv, #create_aes, #create_iv, #decode, #encode, #extract_iv, #initialize

Constructor Details

This class inherits a constructor from Travis::Encrypt::Base

Instance Method Details

#applyObject



10
11
12
# File 'lib/travis/encrypt/decryptor.rb', line 10

def apply
  apply? ? decrypt : string
end

#apply?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/travis/encrypt/decryptor.rb', line 6

def apply?
  string && (!use_prefix? || prefix_used?)
end