module Compass::AppIntegration::Helpers
Constants
- DEAFULT_PROJECT_TYPES
attr_accessor :project_types
Public Instance Methods
default?()
click to toggle source
# File lib/compass/app_integration.rb, line 19 def default? @project_types.keys === DEAFULT_PROJECT_TYPES.keys end
init()
click to toggle source
# File lib/compass/app_integration.rb, line 11 def init @project_types ||= DEAFULT_PROJECT_TYPES.dup end
lookup(type)
click to toggle source
# File lib/compass/app_integration.rb, line 23 def lookup(type) unless @project_types[type].nil? eval @project_types[type] else raise Compass::Error, "No application integration exists for #{type}" end end
project_types()
click to toggle source
# File lib/compass/app_integration.rb, line 15 def project_types @project_types end
register(type, klass)
click to toggle source
# File lib/compass/app_integration.rb, line 31 def register(type, klass) @project_types[type] = klass end