Skip to content

Commit

Permalink
Preserve RxBox at the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed Aug 28, 2015
1 parent 6ba4aea commit 246f514
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions RxSwift/RxBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 246f514

Please sign in to comment.