Class: PBSimply::Processor::PbsRMakrdown
- 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
Instance Method Summary collapse
- #get_markup_document(procdoc) ⇒ Object
-
#initialize(config) ⇒ PbsRMakrdown
constructor
A new instance of PbsRMakrdown.
- #print_fileproc_msg(filename) ⇒ Object
Methods inherited from PbsRBase
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
Methods included from PBSimply::Plugger
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 |
#print_fileproc_msg(filename) ⇒ Object
38 39 40 |
# File 'lib/pbsimply/docengine/rdoc.rb', line 38 def print_fileproc_msg(filename) STDERR.puts "#{filename} generate with RDoc/Markdown" end |