Class: PBSimply::Processor::PbsRMakrdown

Inherits:
PbsRBase show all
Defined in:
lib/pbsimply/docengine/rdoc.rb

Overview

RDoc/Markdown processor

Constant Summary

Constants included from ACCS

ACCS::DEFINITIONS, ACCS::INDEX

Constants included from PBSimply::Plugger

PBSimply::Plugger::POST_PROCESSORS

Instance Attribute Summary

Attributes inherited from PBSimply

#indexes

Instance Method Summary collapse

Methods inherited from PbsRBase

#process_document

Methods inherited from PBSimply

#delete_missing, #delete_turn_draft, #doc, #generate, load_config, #load_index, #main, #proc_dir, #proc_docs, #setup_config, #target_file_extensions, #treat_cmdline

Methods included from ACCS

#accsmode, #process_accs, #single_accs

Methods included from Frontmatter

#read_frontmatter

Methods included from PBSimply::Plugger

#post_plugins, #pre_plugins

Methods included from PBSimply::Prayer

#autobless, #bless, #bless_cmd, #bless_ruby

Constructor Details

#initialize(config) ⇒ PbsRMakrdown

Returns a new instance of PbsRMakrdown.



32
33
34
35
36
# File 'lib/pbsimply/docengine/rdoc.rb', line 32

def initialize(config)
  require 'rdoc'
  require 'rdoc/markdown'
  super
end

Instance Method Details

#get_markup_document(procdoc) ⇒ Object



42
43
44
# File 'lib/pbsimply/docengine/rdoc.rb', line 42

def get_markup_document procdoc
  RDoc::Markdown.parse(File.read procdoc)
end


38
39
40
# File 'lib/pbsimply/docengine/rdoc.rb', line 38

def print_fileproc_msg(filename)
  STDERR.puts "#{filename} generate with RDoc/Markdown"
end