Sha256: 13d2a674b97dbdc8fb79b054f64a66b3c1f0678831a172d36ee627a162998a8c
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module Brandish module Processors module All # Adds a `<comment>` tag. This ignores all of the elements inside of # it, effectively removing it from the output. # # This processor takes no options, nor any pairs. # # @example # Congratulations! You've won $1,000! # <comment>Before taxes, anyway.</comment> class Comment < Processor::Base include Processor::Block self.names = %i(comment ignore) register %i(all comment) => self # Returns nil, removing the node and its children from the tree. # # @return [nil] def process nil end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brandish-0.1.3 | lib/brandish/processors/all/comment.rb |
brandish-0.1.2 | lib/brandish/processors/all/comment.rb |
brandish-0.1.1 | lib/brandish/processors/all/comment.rb |