module Idna::Configure

Public Class Methods

attributes() click to toggle source
# File lib/idna/configure.rb, line 4
def attributes
  @attributes ||= %i[ffi_lib]
end
options() click to toggle source
# File lib/idna/configure.rb, line 16
def options
  Hash[
    Idna::Configure.attributes.map do |attribute|
      [attribute, instance_variable_get(:"@#{attribute}")]
    end
  ]
end
setup() click to toggle source
# File lib/idna/configure.rb, line 8
def setup
  attributes.each do |attribute|
    if Idna::Default.respond_to?(attribute)
      instance_variable_set(:"@#{attribute}", Idna::Default.send(attribute))
    end
  end
end