247件ヒット
[201-247件を表示]
(0.097秒)
別のキーワード
クラス
- Array (36)
- BasicObject (24)
-
CSV
:: Table (24) - Proc (7)
- String (12)
- Thread (24)
- UnboundMethod (24)
モジュール
- Enumerable (60)
- GC (12)
-
Net
:: HTTPHeader (24)
キーワード
- ! (12)
- != (12)
- << (7)
-
basic
_ auth (12) -
by
_ col _ or _ row! (12) -
by
_ row! (12) -
garbage
_ collect (12) - inspect (12)
- priority (12)
- priority= (12)
-
proxy
_ basic _ auth (12) -
sort
_ by (24) -
to
_ s (12)
検索結果
先頭4件
-
CSV
:: Table # by _ row! -> self (131.0) -
自身をロウモードに変更します。
...びモードが変更されるまで、いくつかのメソッドは行単位で動きます。
@return 必ず自身を返すので安全にメソッドチェーンできます。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row......], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table # => #<CSV::Table mode:col_or_row row_count:3>
table.by_row!
table # => #<CSV::Table mode:row row_count:3>
table[0] # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
table[1] # => #<CSV::Row "header1":"row2_1" "... -
UnboundMethod
# inspect -> String (131.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect... -
UnboundMethod
# to _ s -> String (131.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect... -
Thread
# priority=(val) (79.0) -
スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。
...す。
@param val スレッドの優先度を指定します。プラットフォームに依存します。
//emlist[例][ruby]{
Thread.current.priority # => 0
count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1
b = Thread.new do
loop { count2 += 1 }......end
b.priority = -2
count1 = count2 = 0 # reset
sleep 1 # => 1
count1 # => 13809431
count2 # => 11571921
//}...