432件ヒット
[401-432件を表示]
(0.119秒)
ライブラリ
- ビルトイン (60)
-
cgi
/ core (36) -
cgi
/ html (24) -
irb
/ cmd / load (36) -
irb
/ context (12) -
irb
/ ext / save-history (24) - mkmf (12)
-
net
/ ftp (48) - openssl (60)
- pathname (12)
- rake (24)
-
rdoc
/ context (36) -
rubygems
/ indexer (12) -
rubygems
/ installer (12) -
rubygems
/ specification (24)
クラス
-
ARGF
. class (12) -
Gem
:: Indexer (12) -
Gem
:: Installer (12) -
Gem
:: Specification (24) - IO (48)
-
IRB
:: Context (36) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) -
Net
:: FTP (48) -
OpenSSL
:: SSL :: SSLContext (48) -
OpenSSL
:: X509 :: ExtensionFactory (12) - Pathname (12)
-
RDoc
:: Context (36) -
Rake
:: FileList (12) - String (12)
モジュール
-
CGI
:: HtmlExtension (24) -
CGI
:: QueryExtension (36) - Kernel (12)
キーワード
-
ca
_ file (12) -
ca
_ file= (12) -
cert
_ store= (12) - compress (12)
- config= (12)
-
create
_ body (12) -
create
_ makefile (12) -
defined
_ in? (12) - execute (36)
-
external
_ encoding (12) - extname (12)
-
extra
_ rdoc _ files (12) -
extra
_ rdoc _ files= (12) -
extract
_ files (12) -
file
_ field (24) -
file
_ input? (12) - files (12)
- gettextfile (24)
-
history
_ file (12) -
history
_ file= (12) -
in
_ files (12) -
inplace
_ mode= (12) - pathmap (12)
- puttextfile (24)
-
record
_ location (12) -
set
_ encoding (36) -
set
_ params (12) -
unescape
_ filename? (12)
検索結果
先頭3件
-
IO
# set _ encoding(ext _ enc , int _ enc , **opts) -> self (121.0) -
IO のエンコーディングを設定します。
...文字列を指定した場合 A が外部エンコーディング、B が内部エンコーディングを
表します。
@param ext_enc 外部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param int_enc 内部エンコーディ......ングを表す文字列か Encoding オブジェクトを指定します。
@param opts エンコーディング変換のオプション
例:
io = File.open(file)
io.set_encoding("ASCII-8BIT", "EUC-JP")... -
String
# pathmap(spec = nil) { . . . } -> String (37.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 には単純な文字列置換を行うための
置換......athmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"
置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。
例:
"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase }
#=> "/path/to/file.txt"... -
IO
# set _ encoding(enc _ str , **opts) -> self (21.0) -
IO のエンコーディングを設定します。
...文字列を指定した場合 A が外部エンコーディング、B が内部エンコーディングを
表します。
@param ext_enc 外部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param int_enc 内部エンコーディ......ングを表す文字列か Encoding オブジェクトを指定します。
@param opts エンコーディング変換のオプション
例:
io = File.open(file)
io.set_encoding("ASCII-8BIT", "EUC-JP")...