require 'quarry/markup/macro' module Quarry class Markup #:nodoc: class Before < Macro #def self.match?(comment) # comment =~ /^BEFORE/i #end # Run before macro. def run(runner, spec, context, output) #runner.before = code output.report_macro(self) end # def to_script code.gsub(/^/, '# ') end end end #class Markup end #module Quarry