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