Method: Compass::Installers::Base.installer

Defined in:
lib/compass/installers/base.rb

.installer(type, &locator) ⇒ Object



84
85
86
87
88
89
90
91
# File 'lib/compass/installers/base.rb', line 84

def self.installer(type, &locator)
  locator ||= lambda{|to| to}
  loc_method = "install_location_for_#{type}".to_sym
  define_method loc_method, locator
  define_method "install_#{type}" do |from, to, options|
    copy templatize(from), targetize(send(loc_method, to))
  end
end