Style: Don't put 'require' statements inside methods

This commit is contained in:
Jacques Distler 2008-05-22 09:36:23 -05:00
parent ca1e8de89c
commit 4901279391
3 changed files with 8 additions and 13 deletions

View file

@ -1,4 +1,5 @@
require 'chunks/chunk'
require 'sanitize'
# This chunks allows certain parts of a wiki page to be hidden from the
# rest of the rendering pipeline. It should be run at the beginning
@ -16,7 +17,6 @@ require 'chunks/chunk'
class NoWiki < Chunk::Abstract
require 'sanitize'
include Sanitize
NOWIKI_PATTERN = Regexp.new('<nowiki>(.*?)</nowiki>', Regexp::MULTILINE)