Sha256: 2d1f80f76b3adf24820f593ce0be064032e9dc633d6d7459f7f555ce12ce1d7d

Contents?: true

Size: 802 Bytes

Versions: 19

Compression:

Stored size: 802 Bytes

Contents

module Xcake
  module Generator
    # This generator processes the include and
    # exclude paths, and adds them to the
    # root node to be added to the project.
    #
    class Path

      include Visitor

      # @return [Project] the xcode project
      #
      attr_accessor :project

      # @param    [Project] project for the file path
      #
      def initialize(project)
        @project = project
      end

      protected

      def visit_node(node)

        return unless node.path

        puts "Adding #{node.path}..."

        generator_class = BuildPhase::Registry.generator_for_node(node)

        if generator_class
          generator = generator_class.new(@project)
          node.accept(generator)
        end
      end

      def leave_node(node)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
xcake-0.5.3 lib/xcake/generator/path.rb
xcake-0.5.2 lib/xcake/generator/path.rb
xcake-0.5.1 lib/xcake/generator/path.rb
xcake-0.5.0 lib/xcake/generator/path.rb
xcake-0.4.8 lib/xcake/generator/path.rb
xcake-0.4.7 lib/xcake/generator/path.rb
xcake-0.4.6 lib/xcake/generator/path.rb
xcake-0.4.5 lib/xcake/generator/path.rb
xcake-0.4.4 lib/xcake/generator/path.rb
xcake-0.4.3 lib/xcake/generator/path.rb
xcake-0.4.2 lib/xcake/generator/path.rb
xcake-0.4.1 lib/xcake/generator/path.rb
xcake-0.3.1 lib/xcake/generator/path.rb
xcake-0.3.0 lib/xcake/generator/path.rb
xcake-0.1.9 lib/xcake/generator/path.rb
xcake-0.1.8 lib/xcake/generator/path.rb
xcake-0.1.7 lib/xcake/generator/path.rb
xcake-0.1.6 lib/xcake/generator/path.rb
xcake-0.1.5 lib/xcake/generator/path.rb