Sha256: 1e6661bf75ed6c830f582f20d77a600cc3c465dd2ce0b796748e51a9dcf2b827
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quarry-0.5.2 | lib/quarry/markup/before.rb |