Module: Nanoc::Core::Executor::Patch

Included in:
Nanoc::Core::Executor
Defined in:
lib/nanoc-gzip/core_ext/nanoc/core/executor.rb

Instance Method Summary collapse

Instance Method Details

#filter_for_filtering(filter_name) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/nanoc-gzip/core_ext/nanoc/core/executor.rb', line 6

def filter_for_filtering(filter_name)
  klass = Nanoc::Core::Filter.named!(filter_name)
  if klass.from_binary_or_text?
    klass.new(assigns)
  else
    super
  end
end