Sha256: fc52451156347435562a86c565f674ea88db33ae2a1e5efad40ffa90b752def0
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compass-sourcemaps-0.12.3.sourcemaps.a4836f1 | lib/compass/configuration/paths.rb |
compass-sourcemaps-0.12.2.sourcemaps.57a186c | lib/compass/configuration/paths.rb |