0001    //
0002    //  ProcessInfo.swift
0003    //  Swiftline
0004    //
0005    //  Created by Omar Abdelhafith on 26/11/2015.
0006    //  Copyright © 2015 Omar Abdelhafith. All rights reserved.
0007    //
0008    
0009    import Foundation
0010    
0011    
0012    protocol ProcessInfoType
ProcessInfo.swift:17
extension NSProcessInfo: ProcessInfoType {
ProcessInfo.swift:21
class DummyProcessInfo: ProcessInfoType {
ProcessInfo.swift:38
  static var internalProcessInfo: ProcessInfoType = NSProcessInfo()
{ 0013 var arguments
ProcessInfo.swift:41
    return internalProcessInfo.arguments
: [String] { get } 0014 var cacheResults
ProcessInfo.swift:45
    return internalProcessInfo.cacheResults
: Bool { get } 0015 } 0016 0017 extension NSProcessInfo: ProcessInfoType { 0018 var cacheResults: Bool { return true } 0019 } 0020 0021 class DummyProcessInfo: ProcessInfoType { 0022 0023 var argsToReturn
ProcessInfo.swift:26
    self.argsToReturn = argsToReturn
ProcessInfo.swift:30
    return argsToReturn
: [String] 0024 0025 init(_ argsToReturn: String...) { 0026 self.argsToReturn = argsToReturn 0027 } 0028 0029 var arguments: [String] { 0030 return argsToReturn 0031 } 0032 0033 var cacheResults: Bool { return false } 0034 } 0035 0036 class ProcessInfo
Args.swift:15
    return ProcessInfo.arguments
Args.swift:26
    if let result = cachedResults where ProcessInfo.cacheResults {
{ 0037 0038 static var internalProcessInfo
ProcessInfo.swift:41
    return internalProcessInfo.arguments
ProcessInfo.swift:45
    return internalProcessInfo.cacheResults
: ProcessInfoType = NSProcessInfo() 0039 0040 static var arguments
Args.swift:15
    return ProcessInfo.arguments
: [String] { 0041 return internalProcessInfo.arguments 0042 } 0043 0044 static var cacheResults
Args.swift:26
    if let result = cachedResults where ProcessInfo.cacheResults {
: Bool { 0045 return internalProcessInfo.cacheResults 0046 } 0047 0048 } 0049