Make static method an instance method

This commit is contained in:
Erik 2015-10-18 16:36:01 -04:00
parent c99f9a6b97
commit 8e2f478989

View File

@ -87,8 +87,8 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
} }
} }
static func getSocketIOOptionValue(option: SocketIOClientOption) -> AnyObject? { func getSocketIOOptionValue() -> AnyObject? {
return Mirror(reflecting: option).children.first?.value as? AnyObject return Mirror(reflecting: self).children.first?.value as? AnyObject
} }
static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet { static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet {
@ -107,7 +107,7 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
let options = NSMutableDictionary() let options = NSMutableDictionary()
for option in set { for option in set {
options[option.description] = getSocketIOOptionValue(option) options[option.description] = option.getSocketIOOptionValue()
} }
return options return options