392件ヒット
[1-100件を表示]
(0.138秒)
ライブラリ
- ビルトイン (62)
-
cgi
/ html (33) - csv (22)
- date (11)
- mkmf (11)
- pathname (88)
- prime (33)
-
rexml
/ document (22) - rss (44)
-
rubygems
/ old _ format (44) -
rubygems
/ require _ paths _ builder (11) - uri (11)
クラス
-
CSV
:: Row (22) - Date (11)
- Dir (6)
-
Enumerator
:: Yielder (27) -
File
:: Stat (22) -
Gem
:: OldFormat (44) - Object (7)
- Pathname (88)
-
Prime
:: TrialDivisionGenerator (33) -
REXML
:: Parent (22) -
RSS
:: Maker :: ChannelBase (22) -
RSS
:: Rss :: Channel (22) -
URI
:: LDAP (11)
モジュール
-
CGI
:: HtmlExtension (33) -
Gem
:: RequirePathsBuilder (11) - Kernel (11)
キーワード
- << (11)
- attributes (11)
- children (11)
-
delete
_ at (11) -
each
_ child (39) - fields (11)
-
file
_ entries (11) -
file
_ entries= (11) -
file
_ field (11) -
gem
_ path (11) - lastBuildDate (22)
- lastBuildDate= (22)
-
link
_ command (11) -
make
_ link (11) -
make
_ symlink (11) - next (11)
-
password
_ field (11) - realdirpath (11)
- rewind (11)
- spec (11)
- succ (11)
-
text
_ field (11) -
to
_ proc (5) -
values
_ at (11) -
world
_ readable? (22) -
world
_ writable? (22) -
write
_ require _ paths _ file _ if _ needed (11) - yield (11)
-
yield
_ self (7)
検索結果
先頭5件
-
Date
# ld -> Integer (21202.0) -
リリウス日を返します。
リリウス日を返します。 -
Pathname
# realdirpath(basedir = nil) -> Pathname (18401.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT
/....../}
@see Pathname#realpath... -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (18201.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。... -
Pathname
# children(with _ directory = true) -> [Pathname] (15301.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>, ... ]
//}... -
RSS
:: Maker :: ChannelBase # lastBuildDate (15201.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase # lastBuildDate=() (15201.0) -
@todo
@todo -
RSS
:: Rss :: Channel # lastBuildDate (15201.0) -
@todo
@todo -
RSS
:: Rss :: Channel # lastBuildDate= (15201.0) -
@todo
@todo -
Enumerator
:: Yielder # yield(*object) -> () (15101.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
# => [1, 2, 3]
//}... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (12501.0) -
self.children(with_directory).each と同じです。
...lf.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:/u......Pathname:/usr/local/include>
# => #<Pathname:/usr/local/lib>
# => #<Pathname:/usr/local/opt>
# => #<Pathname:/usr/local/sbin>
# => #<Pathname:/usr/local/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathna......me:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children...