Sha256: 22c56cf6db753b78ffe71bcdd10a590b97f4cb6fd36b2980472f9aaf8c3dae5b

Contents?: true

Size: 320 Bytes

Versions: 28

Compression:

Stored size: 320 Bytes

Contents

module BrDanfe
  class Uf
    def self.include?(uf)
      uf.present? ? all.include?(uf.to_sym) : false
    end

    def self.all
      [:AC, :AL, :AP, :AM, :BA, :CE, :DF, :ES, :GO, :MA, :MT, :MS, :MG, :PA, :PB, :PR, :PE, :PI, :RJ, :RN, :RS, :RO, :RR, :SC, :SP, :SE, :TO]
    end
    private_class_method :all
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
br_danfe-0.14.0 lib/br_danfe/uf.rb
br_danfe-0.13.3 lib/br_danfe/uf.rb
br_danfe-0.13.2 lib/br_danfe/uf.rb
br_danfe-0.13.1 lib/br_danfe/uf.rb
br_danfe-0.13.0 lib/br_danfe/uf.rb
br_danfe-0.12.1 lib/br_danfe/uf.rb
br_danfe-0.12.0 lib/br_danfe/uf.rb
br_danfe-0.11.2 lib/br_danfe/uf.rb