Class: Coradoc::Generator
- Inherits:
-
Object
- Object
- Coradoc::Generator
- Defined in:
- lib/coradoc/generator.rb
Class Method Summary collapse
Class Method Details
.gen_adoc(content) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/coradoc/generator.rb', line 3 def self.gen_adoc(content) if content.is_a?(Array) content.map do |elem| Coradoc::Generator.gen_adoc(elem) end.join('') elsif content.respond_to? :to_adoc content.to_adoc elsif content.is_a?(String) content elsif content.nil? '' end end |