module Eggshell::FormatHandler
Interface for handling inline formatting. Markup follows this general structure: {{open_delim + string + close_delim}}. Opening and closing delimiters are defined by the handler.
Public Instance Methods
format(tag, str)
click to toggle source
@param String|MatchData tag The opening delimeter. @param String str The string between delimeters.
# File lib/eggshell/format-handler.rb, line 16 def format(tag, str) end
set_processor(proc, opts = nil)
click to toggle source
# File lib/eggshell/format-handler.rb, line 5 def set_processor(proc, opts = nil) @eggopts = opts || {} @eggshell = proc @eggshell.add_format_handler(self, @fmt_delimeters) if self.respond_to?(:post_processor) post_processor end end