Class: TextAssetFilter

Inherits:
Object
  • Object
show all
Includes:
Annotatable, Simpleton
Defined in:
app/models/text_asset_filter.rb

Direct Known Subclasses

JavascriptFilter, StylesheetFilter

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.filter(text) ⇒ Object



16
17
18
# File 'app/models/text_asset_filter.rb', line 16

def filter(text)
  instance.filter(text)
end

.inherited(subclass) ⇒ Object



12
13
14
# File 'app/models/text_asset_filter.rb', line 12

def inherited(subclass)
  subclass.filter_name = subclass.name.to_name('Filter')
end

Instance Method Details

#filter(text) ⇒ Object



7
8
9
# File 'app/models/text_asset_filter.rb', line 7

def filter(text)
  text
end