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

Version Path
compass-0.12.1 lib/compass/configuration/paths.rb
compass-0.12.0 lib/compass/configuration/paths.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/lib/compass/configuration/paths.rb
compass-0.12.rc.1 lib/compass/configuration/paths.rb
compass-0.12.rc.0 lib/compass/configuration/paths.rb
compass-0.11.7 lib/compass/configuration/paths.rb
compass-0.12.alpha.4 lib/compass/configuration/paths.rb
compass-0.12.alpha.3 lib/compass/configuration/paths.rb
compass-0.11.6 lib/compass/configuration/paths.rb
compass-0.12.alpha.2 lib/compass/configuration/paths.rb
compass-0.12.alpha.1 lib/compass/configuration/paths.rb
compass-0.12.alpha.0 lib/compass/configuration/paths.rb
compass-rails31-0.12.0.alpha.0.91a748a lib/compass/configuration/paths.rb
compass-0.11.5 lib/compass/configuration/paths.rb
compass-0.11.4 lib/compass/configuration/paths.rb
compass-0.11.3 lib/compass/configuration/paths.rb
compass-0.11.2 lib/compass/configuration/paths.rb
compass-0.11.1 lib/compass/configuration/paths.rb
compass-0.11.0 lib/compass/configuration/paths.rb
compass-0.11.beta.7 lib/compass/configuration/paths.rb