Sha256: 6b2bf3f89703124f0b005e4c1ca7c180b71b77d73f5ba48563172158447aacff

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

require "hash_with_indifferent_access_duplicate_warning/version"
require "hash_with_indifferent_access_duplicate_warning/active_support/hash_with_indifferent_access"

module HashWithIndifferentAccessDuplicateWarning
  attr_accessor :write_error_log_func

  class << self
    def write_error_log(error_message)
      @write_error_log_func&.call(error_message)
    end

    def register_write_error_log_func(func)
    @write_error_log_func = func
  end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hash_with_indifferent_access_duplicate_warning-0.1.0 lib/hash_with_indifferent_access_duplicate_warning.rb