require 'kramdown' class Video < Sequel::Model many_to_one :channel def parseScript() return Kramdown::Document.new(@values[:script]).to_html end end