reduced the number of warnings in unit tests (still very high though)

This commit is contained in:
Alexey Verkhovsky 2005-01-21 22:08:47 +00:00
parent 259a7028e3
commit befa8c91b2
3 changed files with 15 additions and 26 deletions

View file

@ -64,11 +64,11 @@ class URIChunk < Chunk::Abstract
end
def self.pattern
def URIChunk.pattern
INTERNET_URI_REGEXP
end
attr_reader :uri, :scheme, :user, :host, :port, :path, :query, :fragment, :link_text
attr_reader :user, :host, :port, :path, :query, :fragment, :link_text
def self.apply_to(content)
content.gsub!( self.pattern ) do |matched_text|
@ -172,7 +172,7 @@ class LocalURIChunk < URIChunk
LOCAL_URI_REGEXP = Regexp.new(TEXTILE_SYNTAX_PREFIX + LOCAL_URI, Regexp::EXTENDED, 'N')
end
def self.pattern
def LocalURIChunk.pattern
LOCAL_URI_REGEXP
end