Sha256: 567b8880cfc2af4d89f3711a1549d2c936f40ce5ec3a169c7eae2d9593c267c2

Contents?: true

Size: 812 Bytes

Versions: 45

Compression:

Stored size: 812 Bytes

Contents

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

Version data entries

45 entries across 44 versions & 4 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-1.0.3/lib/compass/app_integration.rb
compass-1.0.3 lib/compass/app_integration.rb
compass-1.1.0.alpha.3 lib/compass/app_integration.rb
compass-1.1.0.alpha.2 lib/compass/app_integration.rb
compass-1.1.0.alpha.1 lib/compass/app_integration.rb
compass-1.1.0.alpha.0 lib/compass/app_integration.rb
compass-1.0.1 lib/compass/app_integration.rb
compass-1.0.0 lib/compass/app_integration.rb
compass-1.0.0.rc.1 lib/compass/app_integration.rb
compass-1.0.0.rc.0 lib/compass/app_integration.rb
compass-0.12.7 lib/compass/app_integration.rb
compass-1.0.0.alpha.21 lib/compass/app_integration.rb
compass-1.0.0.alpha.20 lib/compass/app_integration.rb
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/lib/compass/app_integration.rb
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/lib/compass/app_integration.rb
compass-0.12.6 lib/compass/app_integration.rb
compass-0.12.5 lib/compass/app_integration.rb
compass-0.12.4 lib/compass/app_integration.rb
compass-1.0.0.alpha.19 lib/compass/app_integration.rb
compass-0.12.3 lib/compass/app_integration.rb