Sha256: 621e51390f4a78dbb4468281c506dd30586e32a059e120a0e3352020883c5589
Contents?: true
Size: 316 Bytes
Versions: 1
Compression:
Stored size: 316 Bytes
Contents
def path_to(page_name) case page_name when /the homepage/i '/' when /the "(.*)" project page/ "/projects/#{$1}" when /the "(.*)" branch of "(.*)" project/ url = "/projects/#{$2}/refs/#{$1}" puts url url else raise "Can't find mapping from \"#{page_name}\" to a path." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ginst-0.2.2 | features/support/paths.rb |