Class: Nanoc::Core::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc-gzip/core_ext/nanoc/core/filter.rb

Class Method Summary collapse

Class Method Details

.from_binary_or_text?Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/nanoc-gzip/core_ext/nanoc/core/filter.rb', line 5

def self.from_binary_or_text?
  return false unless @from.is_a?(Array)
  @from.sort == %i[binary text]
end