るりまサーチ

最速Rubyリファレンスマニュアル検索!
270件ヒット [201-270件を表示] (0.069秒)

別のキーワード

  1. _builtin sum
  2. enumerable sum
  3. array sum
  4. string sum

検索結果

<< < 1 2 3 >>

OptionParser#summary_indent=(indent) (6101.0)

サマリを表示する時のインデントを文字列で指定します。

...pdate")
opts.on_tail("-h", "--help")
end

opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent = " " # => " "
opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n"...

OptionParser#summary_width -> Integer (6101.0)

サマリを表示するときの幅を整数で返します。

...pts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8
opts.summary_width # =>8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", "...

OptionParser#summary_width=(width) (6101.0)

サマリを表示するときの幅を整数で指定します。

...on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8 # => 8
opts.summary_width # => 8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", "...

Gem::Package::TarInput#extract_entry(destdir, entry, expected_md5sum = nil) (108.0)

指定された destdir に entry を展開します。

...param destdir 展開先のディレクトリを指定します。

@param entry エントリを指定します。

@param expected_md5sum 期待する MD5 チェックサムを指定します。

@raise Gem::Package::BadCheckSum チェックサムが一致しなかった場合に発生します。...

Proc#curry -> Proc (13.0)

Procをカリー化します

...5)[1][2][3][4][5] #=> 6
p b.curry(5)[1, 2][3, 4][5] #=> 6
p b.curry(1)[1] #=> 1

b = proc {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p...
...expected 3)
p b.curry(1) #=> wrong number of arguments (given 1, expected 3)

b = lambda {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p...

絞り込み条件を変える

Proc#curry(arity) -> Proc (13.0)

Procをカリー化します

...5)[1][2][3][4][5] #=> 6
p b.curry(5)[1, 2][3, 4][5] #=> 6
p b.curry(1)[1] #=> 1

b = proc {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p...
...expected 3)
p b.curry(1) #=> wrong number of arguments (given 1, expected 3)

b = lambda {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p...
<< < 1 2 3 >>