Sha256: 11c14625b15abac740160c22a7c367f26e1fc6cab3192f4fd0d529404399b157

Contents?: true

Size: 392 Bytes

Versions: 25

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true
module Loofah
  module MetaHelpers # :nodoc:
    def self.add_downcased_set_members_to_all_set_constants(mojule)
      mojule.constants.each do |constant_sym|
        constant = mojule.const_get constant_sym
        next unless Set === constant
        constant.dup.each do |member|
          constant.add member.downcase
        end
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 4 rubygems

Version Path
loofah-2.9.0 lib/loofah/metahelpers.rb
loofah-2.8.0 lib/loofah/metahelpers.rb
loofah-2.7.0 lib/loofah/metahelpers.rb
loofah-2.6.0 lib/loofah/metahelpers.rb
loofah-2.5.0 lib/loofah/metahelpers.rb