Skip to content

Commit

Permalink
Merge pull request #42 from ikesyo/publicize
Browse files Browse the repository at this point in the history
Make some extension methods public
  • Loading branch information
neilpa committed Sep 21, 2015
2 parents 64eb2ff + d149972 commit a2f05bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Action.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ReactiveCocoa

extension Action {
/// Creates an always disabled action.
static var rex_disabled: Action {
public static var rex_disabled: Action {
return Action(enabledIf: ConstantProperty(false)) { _ in .empty }
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Foundation/NSData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ReactiveCocoa
extension NSData {
/// Read the data at the URL.
/// Sends the data or the error.
class func rex_dataWithContentsOfURL(url: NSURL, options: NSDataReadingOptions = NSDataReadingOptions()) -> SignalProducer<NSData, NSError> {
public class func rex_dataWithContentsOfURL(url: NSURL, options: NSDataReadingOptions = NSDataReadingOptions()) -> SignalProducer<NSData, NSError> {
return SignalProducer<NSData, NSError> { observer, disposable in
do {
let data = try NSData(contentsOfURL: url, options: options)
Expand Down
2 changes: 1 addition & 1 deletion Source/Foundation/NSUserDefaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extension NSUserDefaults {
/// by casting to NSObject and checking for equality. If the values aren't
/// convertible this will generate events whenever _any_ value in NSUserDefaults
/// changes.
func rex_valueForKey(key: String) -> SignalProducer<AnyObject?, NoError> {
public func rex_valueForKey(key: String) -> SignalProducer<AnyObject?, NoError> {
let center = NSNotificationCenter.defaultCenter()
let initial = objectForKey(key)

Expand Down

0 comments on commit a2f05bc

Please sign in to comment.