Mini Shell
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Creates a new DNS resolver.
- !ruby/struct:SM::Flow::P
body: "<tt>config_info</tt> can be:"
- !ruby/object:SM::Flow::LIST
contents:
- !ruby/struct:SM::Flow::LI
label: "nil:"
body: Uses /etc/resolv.conf.
- !ruby/struct:SM::Flow::LI
label: "String:"
body: Path to a file using /etc/resolv.conf's format.
- !ruby/struct:SM::Flow::LI
label: "Hash:"
body: Must contain :nameserver, :search and :ndots keys.
type: :NOTE
- !ruby/struct:SM::Flow::P
body: "Example:"
- !ruby/struct:SM::Flow::VERB
body: " Resolv::DNS.new(:nameserver => ['210.251.121.21'],\n :search => ['ruby-lang.org'],\n :ndots => 1)\n"
full_name: Resolv::DNS::new
is_singleton: true
name: new
params: (config_info=nil)
visibility: public
Zerion Mini Shell 1.0