Sha256: 96d6631a5300f1c6d3b00c4b8482b6a963bca5c4225e87e3f60df8ea36d3f086

Contents?: true

Size: 759 Bytes

Versions: 6

Compression:

Stored size: 759 Bytes

Contents

module Xcode
  class Project
    class Config
      autoload :Decomment,  'xcode/project/config/decomment'
      autoload :IOScanner,  'xcode/project/config/io_scanner'
      autoload :ObjectNode, 'xcode/project/config/object_node'
      autoload :ArrayNode,  'xcode/project/config/array_node'

      attr_reader :path, :pbxproj_path, :root
      def initialize(path)
        @path = Pathname(path)
        @pbxproj_path = path + 'project.pbxproj'
        parse
      end

      def parse
        @root = nil
        File.open(pbxproj_path) do |io|
          ios = IOScanner.new(io)
          token = ios.tokenize
          raise 'Unable to deserialize root object.' if token != ?{
          @root = ObjectNode.new(io)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xcode-0.1.6 lib/xcode/project/config.rb
xcode-0.1.5 lib/xcode/project/config.rb
xcode-0.1.4 lib/xcode/project/config.rb
xcode-0.1.3 lib/xcode/project/config.rb
xcode-0.1.2 lib/xcode/project/config.rb
xcode-0.1.1 lib/xcode/project/config.rb