module CpfGenerator
Constants
- VERSION
Public Class Methods
formatted()
click to toggle source
# File lib/cpf_generator.rb, line 8 def self.formatted Cpf.new(numbers).formatted end
new()
click to toggle source
# File lib/cpf_generator.rb, line 4 def initialize numbers end
numbers()
click to toggle source
# File lib/cpf_generator.rb, line 16 def self.numbers [*0..9].sample(9) end
unformatted()
click to toggle source
# File lib/cpf_generator.rb, line 12 def self.unformatted Cpf.new(numbers).unformatted end