Make static method an instance method
This commit is contained in:
parent
c99f9a6b97
commit
8e2f478989
@ -87,8 +87,8 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
|
||||
}
|
||||
}
|
||||
|
||||
static func getSocketIOOptionValue(option: SocketIOClientOption) -> AnyObject? {
|
||||
return Mirror(reflecting: option).children.first?.value as? AnyObject
|
||||
func getSocketIOOptionValue() -> AnyObject? {
|
||||
return Mirror(reflecting: self).children.first?.value as? AnyObject
|
||||
}
|
||||
|
||||
static func NSDictionaryToSocketOptionsSet(dict: NSDictionary) -> SocketOptionsSet {
|
||||
@ -107,7 +107,7 @@ public enum SocketIOClientOption: CustomStringConvertible, Hashable {
|
||||
let options = NSMutableDictionary()
|
||||
|
||||
for option in set {
|
||||
options[option.description] = getSocketIOOptionValue(option)
|
||||
options[option.description] = option.getSocketIOOptionValue()
|
||||
}
|
||||
|
||||
return options
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user