Sha256: 0a34163e48269664d4b0b392004061fbeefbffdfde680ac6fa07de140bd93b1c

Contents?: true

Size: 523 Bytes

Versions: 11

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

module ActiveUxid
  class Configuration

    attr_accessor :encoding_chars, :encoding_length, :encoding_salt

    def initialize
      @encoding_chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
      @encoding_length = 26
      @encoding_salt = 1369136
    end

  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configuration=(config)
    @configuration = config
  end

  def self.configure
    yield(configuration)
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
active_uxid-5.0.0 lib/active_uxid/configuration.rb
active_uxid-1.0.13 lib/active_uxid/configuration.rb
active_uxid-1.0.12 lib/active_uxid/configuration.rb
active_uxid-1.0.11 lib/active_uxid/configuration.rb
active_uxid-1.0.10 lib/active_uxid/configuration.rb
active_uxid-1.0.9 lib/active_uxid/configuration.rb
active_uxid-1.0.8 lib/active_uxid/configuration.rb
active_uxid-1.0.7 lib/active_uxid/configuration.rb
active_uxid-1.0.6 lib/active_uxid/configuration.rb
active_uxid-1.0.5 lib/active_uxid/configuration.rb
active_uxid-1.0.4 lib/active_uxid/configuration.rb