class DataProcessor
Constants
- VERSION
Public Class Methods
markdown_renderer()
click to toggle source
Markdown
# File lib/data_processor.rb, line 29 def self.markdown_renderer Redcarpet::Render::HTML end
new(initial_path="./")
click to toggle source
# File lib/data_processor.rb, line 18 def initialize(initial_path="./") @initial_path = initial_path.sub(/\/+$/, "") @data = {} create_markdown_parser end
Public Instance Methods
create_markdown_parser()
click to toggle source
# File lib/data_processor.rb, line 34 def create_markdown_parser @markdown_parser = Redcarpet::Markdown.new( DataProcessor::markdown_renderer, fenced_code_blocks: true, strikethrough: true, superscript: true, underline: true, highlight: true, smartypants: true ) end
parse_markdown(string)
click to toggle source
# File lib/data_processor.rb, line 47 def parse_markdown(string) @markdown_parser.render(string) end