256件ヒット
[1-100件を表示]
(0.031秒)
種類
- インスタンスメソッド (196)
- モジュール関数 (24)
- 特異メソッド (12)
- 文書 (12)
- モジュール (12)
ライブラリ
- ビルトイン (100)
- date (12)
- json (12)
- monitor (12)
- pathname (48)
-
rubygems
/ platform (12) - scanf (12)
- uri (24)
-
webrick
/ httputils (12)
クラス
- DateTime (12)
-
Gem
:: Platform (12) - Hash (76)
- Pathname (48)
-
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (6) -
URI
:: Generic (24) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
キーワード
- MonitorMixin (12)
- format (12)
- normalize (12)
- normalize! (12)
- open (24)
- rmdir (12)
- rmtree (12)
- sprintf (12)
- sprintf フォーマット (12)
- strptime (12)
-
to
_ json (12) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18)
検索結果
先頭5件
-
Gem
:: Platform # to _ s -> String (21101.0) -
自身にセットされている CPU, OS, バージョンを文字列として返します。
自身にセットされている CPU, OS, バージョンを文字列として返します。 -
Scanf
:: FormatSpecifier # to _ s (21101.0) -
@todo
@todo -
Scanf
:: FormatString # to _ s (21101.0) -
@todo
@todo -
WEBrick
:: HTTPUtils :: FormData # to _ s -> String (21101.0) -
自身が表すフォームデータのうちのひとつを文字列として返します。
自身が表すフォームデータのうちのひとつを文字列として返します。 -
Kernel
. # format(format , *arg) -> String (6206.0) -
format 文字列を C 言語の sprintf と同じように解釈し、 引数をフォーマットした文字列を返します。
...format 文字列を C 言語の sprintf と同じように解釈し、
引数をフォーマットした文字列を返します。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。
@see Kernel.#printf,Time#strftime,Date.strptime
=== sprintf......グ `-' と幅 の指定だけが意味を持ちます。
: s
文字列を出力します。
引数が String オブジェクトでなければ to_s メソッドにより文字列化
したものを引数として扱います。
: p
Object#inspect の結果を出力します。
//emlist[][r... -
Pathname
# rmtree -> nil (6138.0) -
FileUtils.rm_r(self.to_s) と同じです。
...FileUtils.rm_r(self.to_s) と同じです。
@see FileUtils.#rm_r... -
Pathname
# rmdir -> 0 (6116.0) -
Dir.rmdir(self.to_s) と同じです。
...Dir.rmdir(self.to_s) と同じです。
@see Dir.rmdir... -
Hash
# transform _ keys -> Enumerator (6112.0) -
すべてのキーに対してブロックを呼び出した結果で置き換えたハッシュを返します。 値は変化しません。
...transform_keys {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys(&:to_s) # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys.with_index {|k, i| "#{k}.#{i}" }
# => {"a.0"=>1, "b.1"=>2, "c.2"=>3}
//}
@see Hash#transform_keys!
@see Hash#transform_values......@see Hash#transform_values!......//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_keys {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys(a: "a", d: "d") # => {"a"=>1, :b=>2, :c=>3}
h.transform_keys(&:to_s) # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys.with_index {|k, i| "#{k}.#{i}" }......# => {"a.0"=>1, "b.1"=>2, "c.2"=>3}
//}
@see Hash#transform_keys!
@see Hash#transform_values
@see Hash#transform_values!... -
Hash
# transform _ keys {|key| . . . } -> Hash (6112.0) -
すべてのキーに対してブロックを呼び出した結果で置き換えたハッシュを返します。 値は変化しません。
...transform_keys {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys(&:to_s) # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys.with_index {|k, i| "#{k}.#{i}" }
# => {"a.0"=>1, "b.1"=>2, "c.2"=>3}
//}
@see Hash#transform_keys!
@see Hash#transform_values......@see Hash#transform_values!......//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_keys {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys(a: "a", d: "d") # => {"a"=>1, :b=>2, :c=>3}
h.transform_keys(&:to_s) # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys.with_index {|k, i| "#{k}.#{i}" }......# => {"a.0"=>1, "b.1"=>2, "c.2"=>3}
//}
@see Hash#transform_keys!
@see Hash#transform_values
@see Hash#transform_values!... -
Hash
# transform _ keys(hash) -> Hash (6112.0) -
すべてのキーに対してブロックを呼び出した結果で置き換えたハッシュを返します。 値は変化しません。
...//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_keys {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys(a: "a", d: "d") # => {"a"=>1, :b=>2, :c=>3}
h.transform_keys(&:to_s) # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys.with_index {|k, i| "#{k}.#{i}" }......# => {"a.0"=>1, "b.1"=>2, "c.2"=>3}
//}
@see Hash#transform_keys!
@see Hash#transform_values
@see Hash#transform_values!... -
URI
:: Generic # normalize -> URI :: Generic (6112.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
...します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/"...