Module: Zarby

Defined in:
lib/zarby.rb,
lib/zarby/csv.rb,
lib/zarby/version.rb,
lib/zarby/anonymize.rb,
lib/zarby/normalize.rb

Defined Under Namespace

Classes: Csv, NoColSepDetected, Normalize

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.anonymise(input, nb_chars: 2, mask_with: '*') ⇒ Object



9
10
11
# File 'lib/zarby.rb', line 9

def anonymise(input, nb_chars: 2, mask_with: '*')
  Anonymize.new(input:, nb_chars: nb_chars, mask_with: mask_with).call
end

.detect_separator(content) ⇒ Object



13
14
15
# File 'lib/zarby.rb', line 13

def detect_separator(content)
  Csv.new(content:).call
end

.utf8(input) ⇒ Object



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

def utf8(input)
  Normalize.new(input:).call
end