Sha256: da4b34dcf6591702debdb1143e8801f5c71c17cd2cad9c1f81e934c5faa23cca
Contents?: true
Size: 569 Bytes
Versions: 63
Compression:
Stored size: 569 Bytes
Contents
%w(stand_alone rails merb).each do |lib| require "compass/app_integration/#{lib}" end module Compass module AppIntegration module Helpers def lookup(project_type) eval "Compass::AppIntegration::#{camelize(project_type)}" rescue NameError raise Compass::Error, "No application integration exists for #{project_type}" end protected # Stolen from ActiveSupport def camelize(s) s.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase } end end extend Helpers end end
Version data entries
63 entries across 62 versions & 5 rubygems