Class: SkipMacro
- Inherits:
-
MarkupMacro
- Object
- MarkupMacro
- SkipMacro
- Defined in:
- lib/assets/lib/markup_macro.rb
Overview
Just skip macro and all the text inside it
Instance Attribute Summary
Attributes inherited from MarkupMacro
Instance Method Summary collapse
-
#initialize ⇒ SkipMacro
constructor
A new instance of SkipMacro.
- #process(macro, node = nil) ⇒ Object
Constructor Details
#initialize ⇒ SkipMacro
Returns a new instance of SkipMacro.
24 25 26 27 |
# File 'lib/assets/lib/markup_macro.rb', line 24 def initialize @title = "Skip" @regex = /{{@@skip[\s\S]*?}}/ end |
Instance Method Details
#process(macro, node = nil) ⇒ Object
29 30 31 |
# File 'lib/assets/lib/markup_macro.rb', line 29 def process(macro, node = nil) "" end |