1426件ヒット
[1-100件を表示]
(0.091秒)
ライブラリ
- ビルトイン (366)
-
cgi
/ core (12) -
cgi
/ html (24) - erb (24)
-
irb
/ input-method (12) - logger (24)
- mkmf (24)
-
net
/ ftp (22) -
net
/ http (36) -
net
/ smtp (36) - openssl (12)
- pathname (48)
- psych (12)
- rake (144)
-
rake
/ gempackagetask (12) -
rake
/ packagetask (48) -
rdoc
/ code _ object (12) -
rdoc
/ top _ level (24) - ripper (12)
-
ripper
/ filter (12) -
rubygems
/ config _ file (24) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ installer (24) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ info _ cache (84) -
rubygems
/ specification (84) - shell (42)
-
shell
/ command-processor (48) -
shell
/ filter (36) - tempfile (12)
- tracer (12)
-
webrick
/ httprequest (12) -
webrick
/ httpresponse (12) -
webrick
/ httputils (24) - win32ole (12)
- zlib (36)
クラス
-
ARGF
. class (48) - Binding (7)
- Dir (12)
- ERB (24)
- File (24)
-
File
:: Stat (24) -
Gem
:: ConfigFile (24) -
Gem
:: GemPathSearcher (12) -
Gem
:: Installer (24) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceInfoCache (84) -
Gem
:: Specification (84) - IO (179)
-
IRB
:: InputMethod (12) - LoadError (12)
- Logger (12)
-
Logger
:: LogDevice (12) -
Net
:: FTP (12) -
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (12) -
Net
:: HTTPResponse (24) -
Net
:: SMTP (36) -
OpenSSL
:: SSL :: SSLContext (12) - Pathname (48)
-
Psych
:: SyntaxError (12) -
RDoc
:: CodeObject (12) -
RDoc
:: TopLevel (24) -
Rake
:: Application (12) -
Rake
:: FileList (120) -
Rake
:: GemPackageTask (12) -
Rake
:: PackageTask (48) - Ripper (12)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (48) - Shell (42)
-
Shell
:: CommandProcessor (48) -
Shell
:: Filter (36) - String (24)
- Tempfile (12)
- Tracer (12)
-
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPUtils :: FormData (24) -
WIN32OLE
_ METHOD (12) -
Zlib
:: GzipFile (24) -
Zlib
:: GzipReader (12)
モジュール
-
CGI
:: HtmlExtension (24) -
CGI
:: QueryExtension (12) - Kernel (24)
キーワード
- * (12)
-
absolute
_ path (12) -
base
_ label (12) - basename (18)
-
ca
_ file (24) -
cache
_ file (12) -
config
_ file _ name (12) - count (12)
-
cpp
_ command (12) -
create
_ body (12) - dev (12)
- dirname (18)
- download (12)
-
dummy
_ makefile (12) - echo (18)
- ext (12)
- extname (12)
-
extra
_ rdoc _ files (12) - facts (10)
-
file
_ absolute _ name (12) -
file
_ field (24) -
file
_ name (24) -
file
_ relative _ name (12) - filename (84)
- filename= (24)
- files (12)
-
formatted
_ program _ filename (12) - formatter (12)
- ftype (42)
-
gem
_ file (12) -
get
_ file _ uri _ path (12) -
get
_ line (12) - getc (12)
- gets (27)
- gsub (12)
- gsub! (12)
- helpstring (12)
-
is
_ a? (12) - join (6)
-
kind
_ of? (12) - label (12)
-
latest
_ cache _ file (12) -
latest
_ system _ cache _ file (12) -
latest
_ user _ cache _ file (12) -
lib
_ files (12) -
matching
_ files (12) - mdtm (12)
-
open
_ uri _ or _ path (12) -
orig
_ name (12) -
parent
_ file _ name (12) - path (84)
- pathmap (24)
- pread (8)
- query (12)
- rakefile (12)
- read (24)
-
read
_ body (24) - readchar (24)
- readline (48)
- readlines (36)
- readlink (18)
-
send
_ mail (12) - sendmail (12)
-
set
_ encoding (36) - shebang (12)
-
source
_ location (7) - split (18)
- sub (12)
- sub! (12)
- sysread (12)
-
system
_ cache _ file (12) -
tar
_ bz2 _ file (12) -
tar
_ gz _ file (12) -
test
_ file (12) -
test
_ files (12) -
test
_ suite _ file (12) -
tgz
_ file (12) -
to
_ path (24) -
to
_ s (24) -
try
_ file (12) -
user
_ cache _ file (12) -
zip
_ file (12)
検索結果
先頭5件
-
String
# pathmap(spec = nil) { . . . } -> String (27256.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
...セント自身を表します。
%d は数値のプレフィクスを取ることができます。
例:
'a/b/c/d/file.txt'.pathmap("%2d") # => 'a/b'
'a/b/c/d/file.txt'.pathmap("%-2d") # => 'c/d'
また、%d, %p, %f, %n, %x, %X には単純な文字列置換を行うための
置換パ......ack/proj/A.java".pathmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"
置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。
例:
"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase }
#=> "/pa......th/to/file.txt"... -
Psych
:: SyntaxError # file -> String|nil (21209.0) -
エラーが生じたファイルの名前を返します。
...エラーが生じたファイルの名前を返します。
Psych.load_file で指定したファイルの名前や
Psych.load の第2引数で指定した名前が返されます。
パース時にファイル名を指定しなかった場合は nil が返されます。... -
String
# count(*chars) -> Integer (21125.0) -
chars で指定された文字が文字列 self にいくつあるか数えます。
...chars で指定された文字が文字列 self にいくつあるか数えます。
検索する文字を示す引数 chars の形式は tr(1) と同じです。
つまり、「"a-c"」は文字 a から c を意味し、
「"^0-9"」のように文字列の先頭が「^」の場合は
指定文......えます。
@param chars 出現回数を数える文字のパターン
//emlist[例][ruby]{
p 'abcdefg'.count('c') # => 1
p '123456789'.count('2378') # => 4
p '123456789'.count('2-8', '^4-6') # => 4
# ファイルの行数を数える
n_lines = File.read("foo").count(......"\n")
# ファイルの末尾に改行コードがない場合にも対処する
buf = File.read("foo")
n_lines = buf.count("\n")
n_lines += 1 if /[^\n]\z/ =~ buf
# if /\n\z/ !~ buf だと空ファイルを 1 行として数えてしまうのでダメ
//}... -
Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String] (15402.0) -
与えられた spec に path が含まれている場合、その path のリストを返します。
...与えられた spec に path が含まれている場合、その path のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。... -
Gem
:: SourceInfoCache # latest _ cache _ file -> String (15309.0) -
使用可能な最新のキャッシュファイル名を返します。
...のキャッシュファイル名を返します。
システムキャッシュが使用可能な場合はシステムキャッシュのファイル名を返します。
そうでない場合はユーザーキャッシュのファイル名を返します。
@see Gem::SourceInfoCache#cache_file... -
Gem
:: ConfigFile # config _ file _ name -> String (15303.0) -
設定ファイルの名前を返します。
設定ファイルの名前を返します。 -
Gem
:: SourceInfoCache # cache _ file -> String (15303.0) -
使用可能なキャッシュファイル名を返します。
使用可能なキャッシュファイル名を返します。
システムキャッシュが使用可能な場合はシステムキャッシュのファイル名を返します。
そうでない場合はユーザーキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache # latest _ system _ cache _ file -> String (15303.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache # latest _ user _ cache _ file -> String (15303.0) -
最新のユーザーキャッシュのファイル名を返します。
最新のユーザーキャッシュのファイル名を返します。