Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_dns/resolver.rb

Instance Method Summary collapse

Instance Method Details

#redefine_const(name, value) ⇒ Object



8
9
10
11
# File 'lib/vagrant_dns/resolver.rb', line 8

def redefine_const(name, value)
  __send__(:remove_const, name) if const_defined?(name)
  const_set(name, value)
end