925件ヒット
[1-100件を表示]
(0.031秒)
種類
- インスタンスメソッド (660)
- 特異メソッド (88)
- 文書 (86)
- ライブラリ (80)
- モジュール (11)
ライブラリ
- ビルトイン (88)
- csv (165)
-
net
/ http (363) - openssl (11)
- prime (44)
-
rdoc
/ generator / json _ index (11) -
rexml
/ document (22) -
rubygems
/ indexer (11) -
rubygems
/ source _ index (11) - strscan (22)
- win32ole (11)
クラス
- Array (33)
- CSV (33)
-
CSV
:: FieldInfo (11) -
CSV
:: Row (66) -
CSV
:: Table (55) - Enumerator (22)
-
Gem
:: Indexer (11) -
Gem
:: SourceIndex (11) -
Net
:: HTTPGenericRequest (88) -
Prime
:: PseudoPrimeGenerator (44) -
RDoc
:: Generator :: JsonIndex (11) -
REXML
:: Elements (22) - StringScanner (22)
-
WIN32OLE
_ PARAM (11)
モジュール
- Enumerable (22)
-
GC
:: Profiler (11) -
Net
:: HTTPHeader (275)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - ASN1 (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) - Ruby変更履歴 (11)
- [] (66)
- []= (55)
-
basic
_ auth (11) - body (11)
- body= (11)
-
body
_ stream (11) -
body
_ stream= (11) -
cgi
/ session (11) - chunked? (11)
-
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type= (11) - convert (33)
- delete (33)
- drb (11)
- each (11)
-
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) -
each
_ with _ index (44) - fetch (33)
- field (11)
-
form
_ data= (11) - method (22)
-
net
/ http (11) -
net
/ pop (11) - path (11)
- pointer= (11)
- pos= (11)
-
proxy
_ basic _ auth (11) - range (11)
-
range
_ length (11) - rdoc (11)
-
rdoc
/ generator / json _ index (11) -
request
_ body _ permitted? (11) -
response
_ body _ permitted? (11) - result (11)
- rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
set
_ content _ type (11) -
set
_ form _ data (11) -
with
_ index (44) - xmlrpc (3)
検索結果
先頭5件
-
Gem
:: Indexer . new(directory) -> Gem :: Indexer (21201.0) -
与えられたディレクトリに Gem リポジトリのインデックスを作成するために 自身を初期化します。
与えられたディレクトリに Gem リポジトリのインデックスを作成するために
自身を初期化します。 -
Gem
:: SourceIndex . new(specifications = {}) -> Gem :: SourceIndex (21201.0) -
与えられたハッシュを元に自身を初期化します。
与えられたハッシュを元に自身を初期化します。
@param specifications キーを Gem の名前、値を Gem::Specification のインスタンスとするハッシュを指定します。 -
RDoc
:: Generator :: JsonIndex . new(parent _ generator , options) -> RDoc :: Generator :: JsonIndex (21201.0) -
RDoc::Generator::JsonIndex オブジェクトを初期化します。
...RDoc::Generator::JsonIndex オブジェクトを初期化します。
@param parent_generator 親となるジェネレータオブジェクトを指定します。
RDoc::Generator::JsonIndex#class_dir や
#file_dir を決めるのに使用します... -
WIN32OLE
_ PARAM . new(ole _ method , index) -> WIN32OLE _ PARAM (18232.0) -
メソッドとパラメータ位置を指定してWIN32OLE_PARAMのインスタンスを作成します。
...ムでは、WIN32OLE_PARAMオブジェクトをnewメソッド
で生成するよりも、WIN32OLE_METHOD#paramsを参照するほうが簡単です。
@param ole_method パラメータを取得するWIN32OLE_METHODのインスタンス。
@param index パラメータの位置。最左端を1とし......raise IndexError indexパラメータが1からパラメータの数の範囲にありません。
@raise RuntimeError 該当メソッドのメタデータが取得できません。
excel = WIN32OLE.new('Excel.Application')
method = excel.ole_method('Run')
param1 = WIN32OLE_PARAM.new(met... -
Array
. new(size) {|index| . . . } -> Array (18231.0) -
長さ size の配列を生成し、各要素のインデックスを引数としてブロックを実行し、 各要素の値をブロックの評価結果に設定します。
...size 配列の長さを数値で指定します。
//emlist[例][ruby]{
ary = Array.new(3){|index| "hoge#{index}"}
p ary #=> ["hoge0", "hoge1", "hoge2"]
//}
//emlist[例][ruby]{
ary = Array.new(3){ "foo" }
p ary #=> ["foo", "foo", "foo"]
ary[0].capitalize!... -
CSV
:: Row # index(header , minimum _ index = 0) -> Integer (18226.0) -
与えられたヘッダの名前に対応するインデックスを返します。
...aram minimum_index このインデックスより後で、ヘッダの名前を探します。
重複しているヘッダがある場合に便利です。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2", "header1"], [1, 2, 3])
row.index("header1")......# => 0
row.index("header1", 1) # => 2
//}
@see CSV::Row#field... -
Array
. new(ary) -> Array (18121.0) -
指定された配列 ary を複製して返します。 Array#dup 同様 要素を複製しない浅い複製です。
...製しない浅い複製です。
@param ary 複製したい配列を指定します。
//emlist[例][ruby]{
p Array.new([1,2,3]) # => [1,2,3]
a = ["a", "b", "c"]
b = Array.new(a)
a.each{|s| s.capitalize! }
p a #=> ["A", "B", "C"]
p b #=> ["A", "B", "... -
Array
. new(size = 0 , val = nil) -> Array (18116.0) -
長さ size の配列を生成し、各要素を val で初期化して返します。
...@param size 配列の長さを数値で指定します。
@param val 配列の要素の値を指定します。
//emlist[例][ruby]{
ary = Array.new(3, "foo")
p ary #=> ["foo", "foo", "foo"]
ary[0].capitalize!
p ary #=> ["Foo", "Foo", "Foo"] (各要素は... -
CSV
:: FieldInfo # index -> Integer (18113.0) -
行内で何番目のフィールドかわかるゼロベースのインデックスを返します。
...ースのインデックスを返します。
//emlist[例][ruby]{
require 'csv'
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.index
Date.parse(field)
end
p csv.first
# => 0
# => 1
# => #<CSV::Row "date1":#<Date: 2018-07-09 (... -
Enumerable
# each _ with _ index(*args) {|item , index| . . . } -> self (6239.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...合は、
要素とそのインデックスを繰り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテ......each_with_index do |n, idx|
p [n, idx]
end
# => [5, 0]
# [10, 1]
# [15, 2]
//}
//emlist[引数ありの例][ruby]{
require 'stringio'
StringIO.new("foo|bar|baz").each_with_index("|") do |s, i|
p [s, i]
end
# => ["foo|", 0]
# ["bar|", 1]
# ["baz", 2]
//}
@see Enumerator#with_index...