Skip to content

Commit

Permalink
Make HBMustacheParent public
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Sep 28, 2021
1 parent ba7cbfb commit 8b38438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/HummingbirdMustache/Parent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

/// Protocol for object that has a custom method for accessing their children, instead
/// of using Mirror
protocol HBMustacheParent {
public protocol HBMustacheParent {
func child(named: String) -> Any?
}

/// Extend dictionary where the key is a string so that it uses the key values to access
/// it values
extension Dictionary: HBMustacheParent where Key == String {
func child(named: String) -> Any? { return self[named] }
public func child(named: String) -> Any? { return self[named] }
}

0 comments on commit 8b38438

Please sign in to comment.