Sha256: 907bb7ba202ef14c2b5bce71801da012dd4d1834dc3cc616540372a1c1b92d7a
Contents?: true
Size: 801 Bytes
Versions: 71
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.to_s =~ 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
71 entries across 70 versions & 7 rubygems