175件ヒット
[1-100件を表示]
(0.137秒)
ライブラリ
- ビルトイン (11)
- benchmark (11)
-
net
/ ftp (11) -
rexml
/ document (55) -
rubygems
/ source _ info _ cache (22) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (18) -
shell
/ system-command (24)
クラス
-
Benchmark
:: Tms (11) -
Gem
:: SourceInfoCache (22) -
Net
:: FTP (11) -
RDoc
:: Options (11) -
REXML
:: DocType (33) -
REXML
:: Entity (11) -
REXML
:: NotationDecl (11) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) -
Shell
:: SystemCommand (24) - String (11)
キーワード
- command (6)
- echo (18)
- external (11)
-
external
_ id (11) - format (11)
-
latest
_ system _ cache _ file (11) - name (6)
- notify (12)
-
op
_ dir (11) - public (11)
- sum (11)
-
system
_ cache _ file (11) -
to
_ a (6) -
to
_ s (6)
検索結果
先頭5件
-
String
# sum(bits = 16) -> Integer (21007.0) -
文字列の bits ビットのチェックサムを計算します。
...{
def sum(bits)
sum = 0
each_byte {|c| sum += c }
return 0 if sum == 0
sum & ((1 << bits) - 1)
end
//}
例えば以下のコードで UNIX System V の
sum(1) コマンドと同じ値が得られます。
//emlist[例][ruby]{
sum = 0
ARGF.each_line do |line|
sum += line.sum
end
sum %= 65... -
REXML
:: DocType # system -> String | nil (18221.0) -
DTD のシステム識別子を返します。
...html1/DTD/xhtml1-strict.dtd">
EOS
doctype.system # => "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype.public # => "-//W3C//DTD XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//... -
Net
:: FTP # system -> String (18203.0) -
サーバーの OS のタイプを返します。
サーバーの OS のタイプを返します。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答コードが上の場合以外でエラーである場合に発生します。 -
REXML
:: NotationDecl # system -> String | nil (18203.0) -
システム識別子(URI)を返します。
システム識別子(URI)を返します。
宣言がシステム識別子を含まない場合は nil を返します。 -
Gem
:: SourceInfoCache # latest _ system _ cache _ file -> String (6203.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache # system _ cache _ file -> String (6203.0) -
システムキャッシュファイルの名前を返します。
システムキャッシュファイルの名前を返します。 -
Shell
:: SystemCommand # command -> String (3103.0) -
@todo
@todo
コマンド名を返します。 -
Shell
:: SystemCommand # name -> String (3103.0) -
@todo
@todo
コマンド名を返します。 -
Shell
:: SystemCommand # notify(*opts) -> String (3103.0) -
@todo
@todo
@param opts
@see Shell#notify -
Shell
:: SystemCommand # notify(*opts) {|message| . . . } -> String (3103.0) -
@todo
@todo
@param opts
@see Shell#notify -
REXML
:: DocType # public -> String | nil (120.0) -
DTD の公開識別子を返します。
...html1/DTD/xhtml1-strict.dtd">
EOS
doctype.system # => "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype.public # => "-//W3C//DTD XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//...