lib/comatose/text_filters.rb
# Use this to create and register your TextFilters
Use this to create and register your TextFilters
Use this to create and register your TextFilters
def define(name, title, &block)
        begin
          p = new(name, title)
          p.instance_eval(&block)
          if p.respond_to? :render_text
            registered_titles[title] = name
            registered_filters[name] = p
          else
            raise "#render_text isn't implemented in this class"
          end
        rescue LoadError
        rescue
        end
      end
def define ( name , title , & block ) begin p = new ( name , title ) p . instance_eval ( & block ) if p . respond_to? :render_text registered_titles [ title ] = name registered_filters [ name ] = p else raise "#render_text isn't implemented in this class" end rescue LoadError rescue end end
Use this to create and register your TextFilters
Use this to create and register your TextFilters
#Comatose.logger.debug "Filter '#{name}' was not included: #{$!}" unless TextFilters.logger.nil? #Comatose.logger.debug "Filter '#{name}' was not included: #{$!}" unless TextFilters.logger.nil?
name
<not_specific>
title
<not_specific>
block
<not_specific>