$:.unshift File.dirname(__FILE__) module BuildMaster class FileProcessor def initialize(template, content_path, evaluator) @template = template @content_path = content_path @evaluator = evaluator end def process_textile() textile_content = IO.read(@content_path) match_result = TEXTILE_REGX.match(textile_content) title = '' if match_result != nil title = match_result[2] textile_content = match_result.post_match end html_body = RedCloth.new(textile_content).to_html html_content = <