Class: Quarry::Markup::After
Instance Attribute Summary
Attributes inherited from Macro
Instance Method Summary collapse
-
#run(runner, spec, context, output) ⇒ Object
Run after macro.
- #to_script ⇒ Object
Methods inherited from Macro
Constructor Details
This class inherits a constructor from Quarry::Markup::Macro
Instance Method Details
#run(runner, spec, context, output) ⇒ Object
Run after macro.
13 14 15 16 |
# File 'lib/quarry/markup/after.rb', line 13 def run(runner, spec, context, output) #runner.after = code output.report_macro(self) end |
#to_script ⇒ Object
19 20 21 |
# File 'lib/quarry/markup/after.rb', line 19 def to_script code.gsub(/^/, '# ') end |