diff --git a/RxSwift/RxBox.swift b/RxSwift/RxBox.swift index 811854209..a15509f0a 100644 --- a/RxSwift/RxBox.swift +++ b/RxSwift/RxBox.swift @@ -8,6 +8,20 @@ import Foundation +// Wrapper for any value type +public class RxBox : CustomStringConvertible { + public let value : T + public init (_ value: T) { + self.value = value + } + + public var description: String { + get { + return "Box(\(self.value))" + } + } +} + // Wrapper for any value type that can be mutated public class RxMutableBox : CustomStringConvertible { public var value : T