Class: Brval::Cpf

Inherits:
Val
  • Object
show all
Defined in:
lib/brval/cpf.rb

Instance Attribute Summary

Attributes inherited from Val

#code

Instance Method Summary collapse

Methods inherited from Val

#initialize, #mask, #valid?

Constructor Details

This class inherits a constructor from Brval::Val

Instance Method Details

#maskedObject



4
5
6
# File 'lib/brval/cpf.rb', line 4

def masked
  @code.dup.insert(3, '.').insert(7, '.').insert(11, '-')
end