Module: Idna
- Defined in:
- lib/idna.rb,
lib/idna/error.rb,
lib/idna/client.rb,
lib/idna/default.rb,
lib/idna/version.rb,
lib/idna/configure.rb
Overview
Internationalizing Domain Names in Applications
Defined Under Namespace
Modules: Configure, Default
Classes: Client, Error
Constant Summary
collapse
- VERSION =
'0.1.0'.freeze
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
18
19
20
21
|
# File 'lib/idna.rb', line 18
def client
Idna::Client.lib_load! unless @client
@client ||= Idna::Client.new
end
|
.config ⇒ Object
14
15
16
|
# File 'lib/idna.rb', line 14
def config
Idna::Configure
end
|
10
11
12
|
# File 'lib/idna.rb', line 10
def configure
yield Idna::Configure
end
|
.method_missing(method, *args, &block) ⇒ Object
29
30
31
32
|
# File 'lib/idna.rb', line 29
def method_missing(method, *args, &block)
return super unless client.respond_to?(method)
client.send(method, *args, &block)
end
|
.reload! ⇒ Object
23
24
25
26
27
|
# File 'lib/idna.rb', line 23
def reload!
@client = nil
Idna::Client.lib_load!
true
end
|