355件ヒット
[301-355件を表示]
(0.088秒)
別のキーワード
クラス
- Array (36)
- BasicObject (24)
- CSV (24)
-
CSV
:: Table (60) - Method (12)
- Proc (7)
-
Rake
:: FileList (12) -
Resolv
:: DNS (12) - String (12)
- Thread (24)
- UnboundMethod (36)
モジュール
- Enumerable (60)
- GC (12)
-
Net
:: HTTPHeader (24)
キーワード
- ! (12)
- != (12)
- << (7)
- arity (24)
-
basic
_ auth (12) -
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) - egrep (12)
-
garbage
_ collect (12) - inspect (24)
- priority (12)
- priority= (12)
-
proxy
_ basic _ auth (12) - read (12)
- readlines (12)
-
sort
_ by (24) - timeouts= (12)
-
to
_ s (12)
検索結果
先頭5件
-
UnboundMethod
# to _ s -> String (19.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect... -
CSV
:: Table # inspect -> String (13.0) -
モードとサイズを US-ASCII な文字列で返します。
...モードとサイズを US-ASCII な文字列で返します。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.inspect # => "#<CSV::Table mode:col_or_row row_count:2>"
//}... -
Method
# arity -> Integer (13.0) -
メソッドが受け付ける引数の数を返します。
...を返します。C 言語レベルで実装されたメソッドが可変長引数を
受け付ける場合、-1 を返します。
//emlist[例][ruby]{
class C
def u; end
def v(a); end
def w(*a); end
def x(a, b); end
def y(a, b, *c); end......od(:v).arity #=> 1
p c.method(:w).arity #=> -1
p c.method(:x).arity #=> 2
p c.method(:y).arity #=> -3
p c.method(:z).arity #=> -3
s = "xyz"
s.method(:size).arity #=> 0
s.method(:replace).arity #=> 1
s.method(:squeeze).arity #=> -1
s.method(:count).arity #=> -1
//}... -
Resolv
:: DNS # timeouts=(values) (13.0) -
DNSリゾルバのタイムアウト時間を設定します。
...DNSリゾルバのタイムアウト時間を設定します。
//emlist[][ruby]{
dns.timeouts = 3
//}
@param values タイムアウト時間(秒)を数値か数値の配列で指定します。配列
を指定した場合は応答を受信するまでの再試行時のタイムア......ウト
時間も含めて順に設定します。nil を指定した場合はデフォル
ト値
([ 5, second = 5 * 2 / nameserver_count, 2 * second, 4 * second ])
を使用します。... -
UnboundMethod
# arity -> Integer (13.0) -
メソッドが受け付ける引数の数を返します。
...を返します。C 言語レベルで実装されたメソッドが可変長引数を
受け付ける場合、-1 を返します。
//emlist[例][ruby]{
class C
def one; end
def two(a); end
def three(*a); end
def four(a, b); end
def five(a, b, *c); end
def six(a, b, *c, &d); end......).arity #=> 2
p C.instance_method(:five).arity #=> -3
p C.instance_method(:six).arity #=> -3
String.instance_method(:size).arity #=> 0
String.instance_method(:replace).arity #=> 1
String.instance_method(:squeeze).arity #=> -1
String.instance_method(:count).arity #=> -1
//}...