class Sablon::Processor::Document::CommentHandler
Handles comment blocks in the template
Public Class Methods
new()
click to toggle source
Calls superclass method
Sablon::Processor::Document::FieldHandler::new
# File lib/sablon/processor/document/field_handlers.rb, line 106 def initialize super(/^comment$/) end
Public Instance Methods
build_statement(constructor, _field, _options = {})
click to toggle source
# File lib/sablon/processor/document/field_handlers.rb, line 110 def build_statement(constructor, _field, _options = {}) block = constructor.consume_block('endComment') Statement::Comment.new(block) end