Sha256: e6385e328d0cf06482d61791c171422b699bdb3d07c48d0f5ac0cb05ba1c395f

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

require_relative "idnx/version"
require "ffi"

module Idnx
  Error = Class.new(StandardError)

  module_function

  def to_punycode(hostname)
    Lib.lookup(hostname)
  end
end

if FFI::Platform.windows?
  require "idnx/windows"
else
  require "idnx/idn2"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
idnx-0.0.1 lib/idnx.rb