Module: SpreadsheetEncrypt

Defined in:
lib/spreadsheet_encrypt.rb,
lib/spreadsheet_encrypt/errors.rb,
lib/spreadsheet_encrypt/version.rb,
lib/spreadsheet_encrypt/encryptor.rb,
lib/spreadsheet_encrypt/xls_converter.rb,
sig/spreadsheet_encrypt.rbs

Defined Under Namespace

Classes: EncryptionFailed, Encryptor, Error, FileNotFound, InvalidPassword, UnsupportedFormat, XlsConverter

Constant Summary collapse

VERSION =

Returns:

  • (String)
"0.1.0"

Class Method Summary collapse

Class Method Details

.encrypt(*args, **kwargs) ⇒ String

Encrypt a spreadsheet file with an open password.

Positional:

SpreadsheetEncrypt.encrypt(input_path, password, output_path)

Keyword:

SpreadsheetEncrypt.encrypt(input:, password:, output:)

Returns:

  • (String) —

    actual output path written



17
18
19
20
# File 'lib/spreadsheet_encrypt.rb', line 17

def self.encrypt(*args, **kwargs)
  input, password, output = resolve_args(args, kwargs)
  Encryptor.encrypt(input, password, output)
end