Module: Coradoc::Output::Adoc

Defined in:
lib/coradoc/output/adoc.rb

Class Method Summary collapse

Class Method Details

.processor_execute(input, _options = {}) ⇒ Object



11
12
13
# File 'lib/coradoc/output/adoc.rb', line 11

def self.processor_execute(input, _options = {})
  input.transform_values { |i| Coradoc::Generator.gen_adoc(i) }
end

.processor_idObject



3
4
5
# File 'lib/coradoc/output/adoc.rb', line 3

def self.processor_id
  :adoc
end

.processor_match?(filename) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/coradoc/output/adoc.rb', line 7

def self.processor_match?(filename)
  %w[.adoc].any? { |i| filename.downcase.end_with?(i) }
end