Preserve RxBox at the moment

This commit is contained in:
Syo Ikeda 2015-08-28 18:08:23 +09:00
parent 6ba4aead54
commit 246f5144a8
1 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,20 @@
import Foundation
// Wrapper for any value type
public class RxBox<T> : 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<T> : CustomStringConvertible {
public var value : T