Class: Evil::Plugin::BlockTag
- Includes:
- Tag
- Defined in:
- lib/evil/plugin/block_tag.rb
Constant Summary
Constants included from Tag
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens) ⇒ BlockTag
constructor
A new instance of BlockTag.
- #render(context) ⇒ Object
- #render_body(context) ⇒ Object
Methods included from Tag
Constructor Details
#initialize(tag_name, markup, tokens) ⇒ BlockTag
Returns a new instance of BlockTag.
32 33 34 35 36 |
# File 'lib/evil/plugin/block_tag.rb', line 32 def initialize(tag_name, markup, tokens) super (markup) end |
Instance Method Details
#render(context) ⇒ Object
38 39 40 |
# File 'lib/evil/plugin/block_tag.rb', line 38 def render(context) TagExecution.new(self, , context, &self.class.tag_proc).to_s end |
#render_body(context) ⇒ Object
42 43 44 |
# File 'lib/evil/plugin/block_tag.rb', line 42 def render_body(context) render_all(@nodelist, context) end |