Sha256: 25ca4822a3bd1a6a3e58e8047556686f3d9f87c95d69137c619f755803c90028
Contents?: true
Size: 552 Bytes
Versions: 55
Compression:
Stored size: 552 Bytes
Contents
# A module to suppress deprecation warnings by temple. # These deprecated options are specified in haml-spec. module Hamlit module Concerns module Deprecation DEPCATED_OPTIONS = %i[html4 html5].freeze def initialize(opts = {}) super rewrite_deprecated_options(opts) end # Temple's warning is noisy in haml-spec. def rewrite_deprecated_options(options) options = options.dup options[:format] = :html if DEPCATED_OPTIONS.include?(options[:format]) options end end end end
Version data entries
55 entries across 55 versions & 1 rubygems