class RubyMarkRunner
Public Instance Methods
print_usage()
click to toggle source
# File lib/rubymark.rb, line 103 def print_usage puts "Usage: rubymark file.md # this will send HTML to STDOUT" end
process_md_file(md_file_name)
click to toggle source
# File lib/rubymark.rb, line 107 def process_md_file(md_file_name) markdown = File.read(md_file_name) puts RubyMark.new(markdown).to_html end
run(args)
click to toggle source
# File lib/rubymark.rb, line 95 def run args unless args[0] print_usage else process_md_file(ARGV[0]) end end