Skip to content

Commit

Permalink
Expose the Currency type
Browse files Browse the repository at this point in the history
  • Loading branch information
thonydam authored and Mordil committed Jan 22, 2020
1 parent ac44099 commit 4850022
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Currency/CurrencyMint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public final class CurrencyMint {


extension CurrencyMint {
fileprivate static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? {
public static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? {
switch code {
case "AED": return AED.self
case "AFN": return AFN.self
Expand Down Expand Up @@ -245,7 +245,7 @@ extension CurrencyMint {
}
}

fileprivate static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? {
public static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? {
switch code {
case 784: return AED.self
case 971: return AFN.self
Expand Down
4 changes: 2 additions & 2 deletions Sources/Currency/CurrencyMint.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public final class CurrencyMint {
% reader = csv.DictReader(file)

extension CurrencyMint {
fileprivate static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? {
public static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? {
switch code {
% for row in reader:
% alphaCode = row["Ccy"]
Expand All @@ -97,7 +97,7 @@ extension CurrencyMint {
}
}

fileprivate static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? {
public static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? {
switch code {
% file.seek(0)
% next(reader)
Expand Down

0 comments on commit 4850022

Please sign in to comment.