Class: Xcodeproj::Pbxproj::PbxObject::Emurate

Inherits:
Object
  • Object
show all
Defined in:
lib/xsort/xcodeproj/pbxproj/pbxobject/Emurate.rb

Class Method Summary collapse

Class Method Details

.emurates(chars) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/xsort/xcodeproj/pbxproj/pbxobject/Emurate.rb', line 17

def self.emurates(chars)
    splits = chars.split(" ")
    isName = false
    splits.each { |char|
        if char == "*/"
            isName = false
        end
        if isName == true
            return char
        end
        if char == "/*"
            isName = true
        end
    }
end