Sha256: ca3c84f3b846cedc8d271d925d6bcc9e96d057f8691a41e8bb49e9398c38edbf
Contents?: true
Size: 305 Bytes
Versions: 1
Compression:
Stored size: 305 Bytes
Contents
class TextAssetFilter include Simpleton include Annotatable annotate :filter_name 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-sns-extension-0.9.0 | app/models/text_asset_filter.rb |