ライブラリ
- ビルトイン (99)
-
net
/ ftp (22) - openssl (11)
- optparse (66)
- pstore (11)
-
rubygems
/ command (22) -
rubygems
/ package (11) -
rubygems
/ package / tar _ header (22) -
rubygems
/ package / tar _ input (11) -
rubygems
/ specification (22) - socket (22)
クラス
- Array (16)
- Fiber (11)
-
Gem
:: Command (22) -
Gem
:: Package :: TarHeader (22) -
Gem
:: Package :: TarInput (11) -
Gem
:: Specification (22) -
Net
:: FTP (22) - Object (11)
- OptionParser (66)
- PStore (11)
- Proc (22)
- Socket (11)
- String (11)
モジュール
- Enumerable (22)
-
OpenSSL
:: SSL (11) -
RubyVM
:: MJIT (6) -
Socket
:: Constants (11)
キーワード
- BadCheckSum (11)
- DATA (11)
-
EMPTY
_ MARSHAL _ CHECKSUM (11) -
IPV6
_ CHECKSUM (22) -
NEWS for Ruby 2
. 4 . 0 (8) -
OP
_ NO _ SESSION _ RESUMPTION _ ON _ RENEGOTIATION (11) - bigdecimal (11)
- checksum (11)
- curry (22)
-
extract
_ entry (11) -
fiddle
/ import (11) - resume (28)
- resume= (11)
-
rinda
/ rinda (11) - summarize (22)
- summary (22)
- summary= (22)
-
summary
_ indent (11) -
summary
_ indent= (11) -
summary
_ width (11) -
summary
_ width= (11) -
update
_ checksum (11) - メソッド呼び出し(super・ブロック付き・yield) (11)
検索結果
先頭5件
-
OptionParser
# summary _ indent=(indent) (6100.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 (6100.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) (6100.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", "... -
PStore
:: EMPTY _ MARSHAL _ CHECKSUM -> String (6100.0) -
内部で利用する定数です。
内部で利用する定数です。 -
RubyVM
:: MJIT . resume -> bool (6100.0) -
RubyVM::MJIT.pause で一時停止した JIT を再開します。
RubyVM::MJIT.pause で一時停止した JIT を再開します。
@return 再開したときは true を、すでに動いているときは false を返します。
@raise RuntimeError JIT が有効ではないときに発生します。
@raise RuntimeError JIT の再開に失敗した時に発生します。
@see RubyVM::MJIT.enabled?, RubyVM::MJIT.pause -
Socket
:: Constants :: IPV6 _ CHECKSUM -> Integer (6100.0) -
Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542... -
Socket
:: IPV6 _ CHECKSUM -> Integer (6100.0) -
Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542... -
Gem
:: Package :: BadCheckSum (6000.0) -
チェックサムが一致しない場合に発生する例外です。
チェックサムが一致しない場合に発生する例外です。 -
Gem
:: Package :: TarInput # extract _ entry(destdir , entry , expected _ md5sum = nil) (107.0) -
指定された destdir に entry を展開します。
...param destdir 展開先のディレクトリを指定します。
@param entry エントリを指定します。
@param expected_md5sum 期待する MD5 チェックサムを指定します。
@raise Gem::Package::BadCheckSum チェックサムが一致しなかった場合に発生します。... -
NEWS for Ruby 2
. 4 . 0 (48.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...バッファを再利用するためにオプションキーワード引数 buffer: を取るようになりました。
* Array#sum 12217
Enumerable#sum と違って each メソッドに依存しません。
* Comparable
* Comparable#clamp を追加 10594
* Dir
* Dir.empty?......10121
* Enumerable
* Enumerable#chunk ブロックを省略した場合 Enumerator を返すようになりました。2172
* Enumerable#sum を追加 12217
* Enumerable#uniq を追加 11090
* Enumerator::Lazy
* Enumerator::Lazy#chunk_while を追加 https://github.com/ruby/ru......)
* Array#sum と Enumerable#sum を追加しました。 12217
Ruby2.4以前ではArray#sumはなかったのでRuby自身には互換性の問題はありません。
しかし、多くのサードパーティ製のGem(activesupport, facets, simple_stats, etc)で
sumメソッドを... -
bigdecimal (48.0)
-
bigdecimal は浮動小数点数演算ライブラリです。 任意の精度で 10 進表現された浮動小数点数を扱えます。
...。][ruby]{
sum = 0
for i in (1..10000)
sum = sum + 0.0001
end
print sum # => 0.9999999999999062
//}
//emlist[例2: 0.0001 を 10000 回足す場合。(BigDecimal)][ruby]{
require 'bigdecimal'
sum = BigDecimal("0")
for i in (1..10000)
sum = sum + BigDecimal("0.0001")
end
print sum # => 0.1e1
/...