Sha256: 81b9bbd90a2d54a83db66ad67352900e89bdf9391c13550e54116c8e45154768
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
require "yaml" require "redcarpet" require "oj" require "data_processor/getters" require "data_processor/helpers" require "data_processor/import" require "data_processor/manipulate" require "data_processor/output" class DataProcessor include DataProcessor::Getters include DataProcessor::Helpers include DataProcessor::Import include DataProcessor::Manipulate include DataProcessor::Output def initialize(initial_path="./") @initial_path = initial_path.sub(/\/+$/, "") @data = {} create_markdown_parser end # # Markdown # def self.markdown_renderer Redcarpet::Render::HTML end 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 def parse_markdown(string) @markdown_parser.render(string) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
data_processor-0.2.1 | lib/data_processor.rb |