Module: Idna::Configure
- Defined in:
- lib/idna/configure.rb
Class Method Summary collapse
Class Method Details
.attributes ⇒ Object
4 5 6 |
# File 'lib/idna/configure.rb', line 4 def attributes @attributes ||= i[ffi_lib] end |
.options ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/idna/configure.rb', line 16 def Hash[ Idna::Configure.attributes.map do |attribute| [attribute, instance_variable_get(:"@#{attribute}")] end ] end |
.setup ⇒ Object
8 9 10 11 12 13 14 |
# 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 |