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
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/lib/compass/configuration/paths.rb
compass-core-1.0.3 lib/compass/configuration/paths.rb
compass-core-1.1.0.alpha.3 lib/compass/configuration/paths.rb
compass-core-1.1.0.alpha.2 lib/compass/configuration/paths.rb
compass-core-1.1.0.alpha.1 lib/compass/configuration/paths.rb
compass-core-1.1.0.alpha.0 lib/compass/configuration/paths.rb
compass-core-1.0.1 lib/compass/configuration/paths.rb
compass-core-1.0.0 lib/compass/configuration/paths.rb
compass-core-1.0.0.rc.1 lib/compass/configuration/paths.rb
compass-core-1.0.0.rc.0 lib/compass/configuration/paths.rb
compass-0.12.7 lib/compass/configuration/paths.rb
compass-core-1.0.0.alpha.21 lib/compass/configuration/paths.rb
compass-core-1.0.0.alpha.20 lib/compass/configuration/paths.rb
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/lib/compass/configuration/paths.rb
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/lib/compass/configuration/paths.rb
compass-0.12.6 lib/compass/configuration/paths.rb
compass-0.12.5 lib/compass/configuration/paths.rb
compass-0.12.4 lib/compass/configuration/paths.rb
compass-core-1.0.0.alpha.19 lib/compass/configuration/paths.rb
compass-0.12.3 lib/compass/configuration/paths.rb