Sha256: b5061992e999d7b97034730e25b233cbca9fbace577d229bea83dabea3eef603
Contents?: true
Size: 466 Bytes
Versions: 10
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module Temple module HTML # @api public class Filter < Temple::Filter include Dispatcher def contains_nonempty_static?(exp) case exp.first when :multi exp[1..-1].any? {|e| contains_nonempty_static?(e) } when :escape contains_nonempty_static?(exp.last) when :static !exp.last.empty? else false end end end end end
Version data entries
10 entries across 9 versions & 3 rubygems