Sha256: b317815e8e78ae1ca1ae4440cd1fa80c655cbfa509f5483089eb19362312ff7c

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

module ActiveUxid
  class Base

    def initialize
      @config = ActiveUxid.configuration
    end

    ActiveUxid.configuration.instance_variables.each do |setting|
      setting = setting.to_s.tr(':@', '')
      define_method(setting) { @config.send(setting) }
    end

    def encoding_base
      encoding_chars.length
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_uxid-5.0.1 lib/active_uxid/base.rb
active_uxid-5.0.0 lib/active_uxid/base.rb
active_uxid-1.0.13 lib/active_uxid/base.rb