Sha256: 4c0446aed891c8b38d7c9eac5e8a03fced24d629c7ef59daf214ede5f3b6795d

Contents?: true

Size: 435 Bytes

Versions: 19

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

module Loofah
  module MetaHelpers # :nodoc:
    class << self
      def 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
end

Version data entries

19 entries across 18 versions & 7 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/loofah-2.23.1/lib/loofah/metahelpers.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/loofah-2.23.1/lib/loofah/metahelpers.rb
loofah-2.24.0 lib/loofah/metahelpers.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/loofah-2.22.0/lib/loofah/metahelpers.rb
loofah-2.23.1 lib/loofah/metahelpers.rb
loofah-2.23.0 lib/loofah/metahelpers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/loofah-2.22.0/lib/loofah/metahelpers.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/metahelpers.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/metahelpers.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/metahelpers.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/metahelpers.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/metahelpers.rb
loofah-2.22.0 lib/loofah/metahelpers.rb
loofah-2.21.4 lib/loofah/metahelpers.rb
loofah-2.21.3 lib/loofah/metahelpers.rb
loofah-2.21.2 lib/loofah/metahelpers.rb
loofah-2.21.1 lib/loofah/metahelpers.rb
loofah-2.21.0 lib/loofah/metahelpers.rb
loofah-2.21.0.rc1 lib/loofah/metahelpers.rb