module MdParser
Constants
- VERSION
Public Class Methods
beautify_table(table_text)
click to toggle source
MdParser.beautify_table
(“|A|B|n|—|—|n|1|2|”)
# File lib/md_parser.rb, line 11 def beautify_table(table_text) TableTransformer.new.apply( TableParser.new.parse( table_text ), :visitor => TextTableVisitor.new)[:table_table] end
table_to_hash(table_text)
click to toggle source
MdParser.table_to_hash
(“|A|B|n|—|—|n|1|2|”)
# File lib/md_parser.rb, line 19 def table_to_hash(table_text) TableTransformer.new.apply( TableParser.new.parse( table_text ), :visitor => HashTableVisitor.new)[:table_table] end
Private Instance Methods
beautify_table(table_text)
click to toggle source
MdParser.beautify_table
(“|A|B|n|—|—|n|1|2|”)
# File lib/md_parser.rb, line 11 def beautify_table(table_text) TableTransformer.new.apply( TableParser.new.parse( table_text ), :visitor => TextTableVisitor.new)[:table_table] end
table_to_hash(table_text)
click to toggle source
MdParser.table_to_hash
(“|A|B|n|—|—|n|1|2|”)
# File lib/md_parser.rb, line 19 def table_to_hash(table_text) TableTransformer.new.apply( TableParser.new.parse( table_text ), :visitor => HashTableVisitor.new)[:table_table] end