Sha256: a38d39d2277401efe3dddc18ec8ba2196e22fcda19d75ed811b5edb235a63646
Contents?: true
Size: 371 Bytes
Versions: 16
Compression:
Stored size: 371 Bytes
Contents
module NavigationHelpers def path_to(page_name) case page_name when "the new album page" '/albums/new' when /^the image for text "(.+)", size "(.+)"$/ "/text/#{$1}/#{$2}" else raise "Can't find mapping from \"#{page_name}\" to a path.\n" + "Now, go and add a mapping in #{__FILE__}" end end end World(NavigationHelpers)
Version data entries
16 entries across 16 versions & 2 rubygems