924件ヒット
[901-924件を表示]
(0.105秒)
別のキーワード
ライブラリ
- ビルトイン (672)
- csv (36)
- delegate (24)
- fiddle (24)
-
fiddle
/ import (12) -
json
/ add / symbol (12) - openssl (12)
- ostruct (12)
- pathname (12)
-
rexml
/ parsers / sax2parser (60) -
rubygems
/ installer (12) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12)
クラス
-
ARGF
. class (10) - Binding (36)
- CSV (36)
- Delegator (24)
-
Encoding
:: Converter (48) -
Fiddle
:: Handle (24) -
Gem
:: Installer (12) - Hash (12)
- IO (12)
- MatchData (1)
- Module (172)
- Object (96)
-
OpenSSL
:: PKey :: EC :: Group (12) - OpenStruct (12)
- Pathname (12)
-
REXML
:: Parsers :: SAX2Parser (60) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Symbol (213)
- Thread (12)
モジュール
- Enumerable (72)
-
Fiddle
:: Importer (12)
キーワード
- <=> (12)
- == (12)
- =~ (12)
- [] (72)
- []= (12)
-
alias
_ method (4) - attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - casecmp (12)
- casecmp? (9)
-
class
_ variables (12) - cleanpath (12)
- constants (12)
-
define
_ method (24) -
define
_ singleton _ method (24) -
end
_ with? (6) -
generate
_ bin _ symlink (12) -
header
_ convert (36) -
import
_ symbol (12) - inject (36)
-
instance
_ methods (12) - listen (60)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) - match (12)
- methods (12)
-
module
_ function (12) -
named
_ captures (1) -
new
_ ostruct _ member (12) -
point
_ conversion _ form= (12) -
primitive
_ convert (48) - private (12)
-
private
_ instance _ methods (12) -
private
_ methods (12) - protected (12)
-
protected
_ instance _ methods (12) -
protected
_ methods (24) - public (12)
-
public
_ instance _ methods (12) -
public
_ methods (24) -
read
_ nonblock (22) - reduce (36)
-
respond
_ to _ missing? (12) -
singleton
_ methods (12) - slice (60)
-
start
_ with? (6) - symlink (18)
- symlink? (18)
-
to
_ json (12) -
transform
_ keys! (12)
検索結果
先頭4件
-
CSV
# header _ convert(name) (13.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...む前に呼び出さなければなりません。
@param name 変換器の名前を指定します。
//emlist[例 name を指定][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_convert(:symbol)
csv.first.headers # => [:header1, :header2]
//}
//e......mlist[例 ブロックを指定][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_convert do |field|
field.to_sym
end
csv.first.headers # => [:header1, :header2]
//}
@see CSV#header_converters, CSV#convert... -
Hash
# transform _ keys! -> Enumerator (13.0) -
すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。 値は変化しません。
...すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。
値は変化しません。
@param hash 置き換え前のキーから置き換え後のキーへのハッシュを指定します。
@return transform_keys! は常に self を返しま......します。
//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!(&:to_sym) # => {:a=>1, :b=>2, :c=>3}
h.transform_keys!(a: "a", d: "d") # => {"a"=>1, :b=>2, :c=>3}
h.transform_keys!.with_index {|k, i| "#{k}.#{i}" }... -
Hash
# transform _ keys! {|key| . . . } -> self (13.0) -
すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。 値は変化しません。
...すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。
値は変化しません。
@param hash 置き換え前のキーから置き換え後のキーへのハッシュを指定します。
@return transform_keys! は常に self を返しま......します。
//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!(&:to_sym) # => {:a=>1, :b=>2, :c=>3}
h.transform_keys!(a: "a", d: "d") # => {"a"=>1, :b=>2, :c=>3}
h.transform_keys!.with_index {|k, i| "#{k}.#{i}" }... -
Hash
# transform _ keys!(hash) -> self (13.0) -
すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。 値は変化しません。
...すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。
値は変化しません。
@param hash 置き換え前のキーから置き換え後のキーへのハッシュを指定します。
@return transform_keys! は常に self を返しま......します。
//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!(&:to_sym) # => {:a=>1, :b=>2, :c=>3}
h.transform_keys!(a: "a", d: "d") # => {"a"=>1, :b=>2, :c=>3}
h.transform_keys!.with_index {|k, i| "#{k}.#{i}" }...