Sha256: 329a8c84010f469ba24855729f14bc90215c365510d897a69988a28edabac793
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
require 'chunks/wiki' require 'date' require 'parsedate' # ToDo items. class Todo < Chunk::Abstract def self.pattern() /todo: (.*?)(?=<br|\r|\n|\z)/i end def initialize(match_data, revision) super(match_data, revision) @text = match_data[1] end def escaped_text() nil end def unmask(content) return self if content.gsub!( Regexp.new(mask(content)), # the style 'todo' is bright-red to be eye catching. It is not expected that # there will be too many items on one page, but each is supposed to stand out. # The ToDo special page differentiates between the 'todo' and 'todoFuture' styles. "<span class=\"todo\"><strong>TODO:</strong> #{@text}</span>" ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Pimki-1.3.092 | app/models/chunks/todo.rb |