Skip to content

Commit

Permalink
Added public init
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasBellucci committed Nov 9, 2020
1 parent 66139d2 commit 8a519be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/SociableWeaver/Helpers/ForEachWeavable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ public struct ForEachWeavable: Directive {
var include: Bool = true
var skip: Bool = false

init<T>(_ array: [T], content: @escaping (T) -> ObjectWeavable) {
array.forEach {
objects.append(content($0))
}
public init<T>(_ array: [T], content: @escaping (T) -> ObjectWeavable) {
array.forEach { objects.append(content($0)) }
}
}

Expand Down

0 comments on commit 8a519be

Please sign in to comment.