Sha256: 6ac06d646632aef5bc6f1894dd7d5dff04bbfc8c550f4edf62f3589645e9f9ad
Contents?: true
Size: 801 Bytes
Versions: 25
Compression:
Stored size: 801 Bytes
Contents
module Compass::Configuration::Paths TRAILING_SEPARATOR = %r{.(/|#{Regexp.escape(File::SEPARATOR)})$} def strip_trailing_separator(*attributes) attributes.each do |attr| alias_method "#{attr}_with_trailing_separator".to_sym, attr class_eval %Q{ def #{attr} # def css_dir path = #{attr}_with_trailing_separator # path = css_dir_with_trailing_separator if path =~ TRAILING_SEPARATOR # if path =~ TRAILING_SEPARATOR path = path[0..-($1.length+1)] # path = path[0..-($1.length+1)] end # end path # path end # end } end end end
Version data entries
25 entries across 25 versions & 2 rubygems