All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.compass-1.0.3.lib.compass.app_integration.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
require "compass/app_integration/stand_alone"

module Compass
  module AppIntegration
    module Helpers
      #attr_accessor :project_types
      DEAFULT_PROJECT_TYPES = {
        :stand_alone => "Compass::AppIntegration::StandAlone"
      }

      def init
        @project_types ||= DEAFULT_PROJECT_TYPES.dup
      end

      def project_types
        @project_types
      end

      def default?
        @project_types.keys === DEAFULT_PROJECT_TYPES.keys
      end

      def lookup(type)
        unless @project_types[type].nil?
          eval @project_types[type]
        else
          raise Compass::Error, "No application integration exists for #{type}"
        end
      end

      def register(type, klass)
        @project_types[type] = klass
      end

    end
    extend Helpers
    init
  end
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy