lib/diffcrypt/file.rb
def format
      return 'diffcrypt' if read == ''
      return 'diffcrypt' if read.index('---')&.zero?

      'activesupport'
    end
# Determines the format to be used for encryption
# @return [String] diffcrypt|activesupport
Determines the format to be used for encryption
Determines the format to be used for encryption
def format
      return 'diffcrypt' if read == ''
      return 'diffcrypt' if read.index('---')&.zero?
      'activesupport'
    end
def format return 'diffcrypt' if read == '' return 'diffcrypt' if read . index ( '---' ) &. zero? 'activesupport' end
Determines the format to be used for encryption
Determines the format to be used for encryption
None
String