.autotest for Story


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Autotest.add_hook :initialize do |at|
  2. # snipplr removes escape-sequence from me!
  3. # '1' should be a backward reference
  4. story_files = %r%^([^/.]+)/1%
  5. at.add_mapping(story_files) do |f, last_matched|
  6. at.files_matching Regexp.new("#{last_matched}.rb")
  7. end
  8. end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.