Sha256: 9cfed2d91a4c773196dc0f56db55dd1af7dd547dba5b601044701a287ede855d
Contents?: true
Size: 444 Bytes
Versions: 30
Compression:
Stored size: 444 Bytes
Contents
class TextFilter include Simpleton include Annotatable annotate :filter_name, :description def filter(text) text end class << self def inherited(subclass) subclass.filter_name = subclass.name.to_name('Filter') end def filter(text) instance.filter(text) end def description_file(filename) text = File.read(filename) rescue "" self.description text end end end
Version data entries
30 entries across 30 versions & 3 rubygems