Class: Yuzu::Filters::ExtensionFilter
- Defined in:
- lib/yuzu/filters/extension.rb
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
- #default(website_file = nil) ⇒ Object
-
#initialize ⇒ ExtensionFilter
constructor
A new instance of ExtensionFilter.
Methods inherited from Filter
#filter_type, filters, #get_match, #get_value, #match, #process, #regex, registry, #replacement, #value
Constructor Details
#initialize ⇒ ExtensionFilter
Returns a new instance of ExtensionFilter.
5 6 7 8 |
# File 'lib/yuzu/filters/extension.rb', line 5 def initialize @name = :extension @directive = "OUTPUT" end |
Instance Method Details
#default(website_file = nil) ⇒ Object
10 11 12 |
# File 'lib/yuzu/filters/extension.rb', line 10 def default(website_file=nil) ".html" end |