Class: Pekky::Format::Filters

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/pekky/format.rb

Overview

The filters class just wraps the filters. Nothing special. Poor thing.

Class Method Summary collapse

Methods inherited from Wrapper

[], add, each, keys, method_missing, values

Class Method Details

.defaultsObject

Returns the array of filters defined in site config, or all of the filters.



95
96
97
# File 'lib/pekky/format.rb', line 95

def self.defaults
  @defaults ||= Config[:text_filters] ? Config[:text_filters] << :links : [:links]
end