# File lib/gollum-lib/helpers.rb, line 4 def trim_leading_slash url return url if url.nil? url.gsub!('%2F','/') return '/' + url.gsub(/^\/+/,'') if url[0,1] == '/' url end
[Validate]
Generated with the Darkfish Rdoc Generator 2.