3件ヒット
[1-3件を表示]
(0.093秒)
ライブラリ
- ipaddr (2)
-
rexml
/ document (1)
クラス
- IPAddr (2)
-
REXML
:: Attribute (1)
検索結果
-
IPAddr
# to _ string -> String (91570.0) -
標準的な文字列表現に変換します。
標準的な文字列表現に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_s -
REXML
:: Attribute # to _ string -> String (91570.0) -
"name='value'" という形式の文字列を返します。
"name='value'" という形式の文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//} -
IPAddr
# to _ s -> String (715.0) -
文字列に変換します。
文字列に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_string