ライブラリ
- ビルトイン (4)
-
cgi
/ html (3) - csv (3)
- date (1)
- mkmf (1)
- pathname (8)
- prime (3)
- pty (1)
-
rexml
/ document (2) - rss (4)
-
rubygems
/ old _ format (6) -
rubygems
/ require _ paths _ builder (1) - uri (2)
クラス
-
CSV
:: Row (3) - Date (1)
-
Enumerator
:: Yielder (2) -
File
:: Stat (2) -
Gem
:: OldFormat (6) -
PTY
:: ChildExited (1) - Pathname (8)
-
Prime
:: TrialDivisionGenerator (3) -
REXML
:: Parent (2) -
RSS
:: Maker :: ChannelBase (2) -
RSS
:: Rss :: Channel (2) -
URI
:: LDAP (2)
モジュール
-
CGI
:: HtmlExtension (3) -
Gem
:: RequirePathsBuilder (1) - Kernel (1)
キーワード
- << (1)
- attributes (1)
- attributes= (1)
- children (1)
-
delete
_ at (1) -
each
_ child (3) - field? (1)
- fields (1)
-
file
_ entries (1) -
file
_ entries= (1) -
file
_ field (1) -
gem
_ path (1) -
gem
_ path= (1) - lastBuildDate (2)
- lastBuildDate= (2)
-
link
_ command (1) -
make
_ link (1) -
make
_ symlink (1) - next (1)
-
password
_ field (1) - realdirpath (1)
- rewind (1)
- spec (1)
- spec= (1)
- status (1)
- succ (1)
-
text
_ field (1) -
values
_ at (1) -
world
_ readable? (2) -
world
_ writable? (2) -
write
_ require _ paths _ file _ if _ needed (1) - yield (1)
検索結果
先頭5件
-
Date
# ld -> Integer (63307.0) -
リリウス日を返します。
リリウス日を返します。 -
Pathname
# realdirpath(basedir = nil) -> Pathname (45904.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathname"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在し... -
Gem
:: OldFormat # gem _ path=(path) (36604.0) -
Gem のパスをセットします。
Gem のパスをセットします。
@param path Gem のパスをセットします。 -
RSS
:: Maker :: ChannelBase # lastBuildDate (36604.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # lastBuildDate=() (36604.0) -
@todo
@todo -
RSS
:: Rss :: Channel # lastBuildDate (36604.0) -
@todo
@todo -
RSS
:: Rss :: Channel # lastBuildDate= (36604.0) -
@todo
@todo -
Enumerator
:: Yielder # yield(*object) -> () (36304.0) -
Enumerator.new で使うメソッドです。
Enumerator.new で使うメソッドです。
生成された Enumerator オブジェクトの each メソッドを呼ぶと
Enumerator::Yielder オブジェクトが渡されたブロックが実行され、
ブロック内の yield メソッドが呼ばれるたびに each に渡された
ブロックが yield メソッドに渡された値とともに繰り返されます。
//emlist[例][ruby]{
enum = Enumerator.new do |y|
y.yield 1, 2, 3
end
enum.each do |x, y, z|
p [x, y, z]
end
# => [... -
Gem
:: OldFormat # gem _ path -> String (36304.0) -
Gem のパスを返します。
Gem のパスを返します。 -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (36304.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。 -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (27904.0) -
self.children(with_directory).each と同じです。
self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:/usr/local/etc>
# => #<Pathname:/usr/local/include>
# => #<Pathname:/us... -
PTY
:: ChildExited # status -> Process :: Status (27604.0) -
子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。
子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。 -
Pathname
# children(with _ directory = true) -> [Pathname] (27604.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
ただし、 ".", ".." は要素に含まれません。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/tmp").children # => [#<Pathname:.X11-unix>, #<Pathname:.iroha_unix>... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (27604.0) -
self.children(with_directory).each と同じです。
self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:/usr/local/etc>
# => #<Pathname:/usr/local/include>
# => #<Pathname:/us... -
File
:: Stat # world _ readable? -> Integer | nil (27304.0) -
全てのユーザから読めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
全てのユーザから読めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"
//} -
File
:: Stat # world _ writable? -> Integer | nil (27304.0) -
全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
全てのユーザから書き込めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/tmp").world_writable? # => 511
sprintf("%o", m) # => "777"
//} -
Pathname
# world _ readable? -> bool (27304.0) -
FileTest.world_readable?(self.to_s) と同じです。
FileTest.world_readable?(self.to_s) と同じです。
@see FileTest.#world_readable? -
Pathname
# world _ writable? -> bool (27304.0) -
FileTest.world_writable?(self.to_s) と同じです。
FileTest.world_writable?(self.to_s) と同じです。
@see FileTest.#world_writable? -
URI
:: LDAP # attributes -> String (27304.0) -
自身の Attribute を文字列で返します。
自身の Attribute を文字列で返します。 -
URI
:: LDAP # attributes=(s) (27304.0) -
自身の Attribute を文字列で設定します。
自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。 -
REXML
:: Parent # delete _ at(index) -> REXML :: Child | nil (18607.0) -
子ノード列上の index で指定された場所の要素を取り除きます。
子ノード列上の index で指定された場所の要素を取り除きます。
取り除いだノードを返します。indexが範囲外である場合は何もせず
nil を返します。 -
CGI
:: HtmlExtension # file _ field(attributes) -> String (18604.0) -
タイプが file である input 要素を生成します。
タイプが file である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
file_field({ "NAME" => "name", "SIZE" => 40 })
# <INPUT TYPE="file" NAME="name" SIZE="40"> -
CGI
:: HtmlExtension # password _ field(attributes) -> String (18604.0) -
タイプが password である input 要素を生成します。
タイプが password である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
password_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="password" NAME="name" VALUE="value"> -
CGI
:: HtmlExtension # text _ field(attributes) -> String (18604.0) -
タイプが text である input 要素を生成します。
タイプが text である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
text_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="text" NAME="name" VALUE="value"> -
CSV
:: Row # field?(data) -> bool (18604.0) -
自身に与えられた値が含まれている場合は真を返します。 そうでない場合は偽を返します。
自身に与えられた値が含まれている場合は真を返します。
そうでない場合は偽を返します。
@param data この行に含まれているかどうか調べたい値を指定します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2", "header3", "header4"], [1, 2, 3, 4])
row.field?(1) # => true
row.field?(5) # => false
//} -
CSV
:: Row # fields(*headers _ and _ or _ indices) -> Array (18325.0) -
与えられた引数に対応する値の配列を返します。
与えられた引数に対応する値の配列を返します。
要素の探索に CSV::Row.field を使用しています。
@param headers_and_or_indices ヘッダの名前かインデックスか Range
のインスタンスか第 1 要素がヘッダの名前で
第 2 要素がオフセットになっている 2 要素
の配列をいくつでも指定します。混在するこ
とがで... -
CSV
:: Row # values _ at(*headers _ and _ or _ indices) -> Array (18325.0) -
与えられた引数に対応する値の配列を返します。
与えられた引数に対応する値の配列を返します。
要素の探索に CSV::Row.field を使用しています。
@param headers_and_or_indices ヘッダの名前かインデックスか Range
のインスタンスか第 1 要素がヘッダの名前で
第 2 要素がオフセットになっている 2 要素
の配列をいくつでも指定します。混在するこ
とがで... -
Gem
:: OldFormat # spec -> Gem :: Specification (18304.0) -
Gem の Gem::Specification を返します。
Gem の Gem::Specification を返します。 -
Enumerator
:: Yielder # <<(object) -> () (18004.0) -
Enumerator.new で使うメソッドです。
Enumerator.new で使うメソッドです。
生成された Enumerator オブジェクトの each メソッドを呼ぶと
Enumerator::Yielder オブジェクトが渡されたブロックが実行され、
ブロック内の << が呼ばれるたびに each に渡されたブロックが
<< に渡された値とともに繰り返されます。
//emlist[例][ruby]{
enum = Enumerator.new do |y|
y << 1
y << 2
y << 3
end
enum.each do |v|
p v
end
# => 1
# 2
# 3
//}
... -
Gem
:: OldFormat # file _ entries -> Array (18004.0) -
Gem パッケージに含まれるファイルの配列を返します。
Gem パッケージに含まれるファイルの配列を返します。 -
Gem
:: OldFormat # file _ entries=(file _ entries) (18004.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
Gem
:: OldFormat # spec=(spec) (18004.0) -
Gem の Gem::Specification をセットします。
Gem の Gem::Specification をセットします。
@param spec Gem の Gem::Specification をセットします。 -
Prime
:: TrialDivisionGenerator # next -> Integer (18004.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。 -
Prime
:: TrialDivisionGenerator # rewind -> nil (18004.0) -
列挙状態を巻き戻します。
列挙状態を巻き戻します。 -
Prime
:: TrialDivisionGenerator # succ -> Integer (18004.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。 -
REXML
:: Parent # each _ child -> Enumerator (9604.0) -
各子ノードに対しブロックを呼び出します。
各子ノードに対しブロックを呼び出します。
ブロックを省略した場合は Enumerator を返します。 -
Pathname
# make _ link(old) -> 0 (9304.0) -
File.link(old, self.to_s) と同じです。
File.link(old, self.to_s) と同じです。
@see File.link -
Pathname
# make _ symlink(old) -> 0 (9304.0) -
File.symlink(old, self.to_s) と同じです。
File.symlink(old, self.to_s) と同じです。
@see File.symlink -
Kernel
# link _ command(ldflags , opt = "" , libpath = $ DEFLIBPATH| $ LIBPATH) -> String (1204.0) -
実際にリンクする際に使用するコマンドを返します。
実際にリンクする際に使用するコマンドを返します。
@param ldflags LDFLAGS に追加する値を指定します。
@param opt LIBS に追加する値を指定します。
@param libpath LIBPATH に指定する値を指定します。
@see RbConfig.expand