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
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/loofah-2.15.0/lib/loofah/metahelpers.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/loofah-2.18.0/lib/loofah/metahelpers.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/loofah-2.15.0/lib/loofah/metahelpers.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/loofah-2.18.0/lib/loofah/metahelpers.rb
loofah-2.20.0 lib/loofah/metahelpers.rb
loofah-2.19.1 lib/loofah/metahelpers.rb
loofah-2.19.0 lib/loofah/metahelpers.rb
loofah-2.18.0 lib/loofah/metahelpers.rb
loofah-2.17.0 lib/loofah/metahelpers.rb
loofah-2.16.0 lib/loofah/metahelpers.rb
loofah-2.15.0 lib/loofah/metahelpers.rb
loofah-2.14.0 lib/loofah/metahelpers.rb
loofah-2.13.0 lib/loofah/metahelpers.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/loofah-2.12.0/lib/loofah/metahelpers.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/loofah-2.12.0/lib/loofah/metahelpers.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/loofah-2.10.0/lib/loofah/metahelpers.rb
loofah-2.12.0 lib/loofah/metahelpers.rb
loofah-2.11.0 lib/loofah/metahelpers.rb
loofah-2.10.0 lib/loofah/metahelpers.rb
loofah-2.9.1 lib/loofah/metahelpers.rb