315件ヒット
[301-315件を表示]
(0.214秒)
ライブラリ
- ビルトイン (58)
-
cgi
/ html (22) - digest (11)
-
net
/ http (33) - nkf (11)
-
rdoc
/ code _ object (33) - stringio (22)
- uri (11)
-
webrick
/ httpstatus (88)
クラス
-
ARGF
. class (22) - IO (11)
-
Net
:: HTTPResponse (33) -
RDoc
:: CodeObject (33) - Refinement (3)
- String (22)
- StringIO (22)
-
URI
:: FTP (11)
モジュール
-
CGI
:: HtmlExtension (22) - Digest (11)
-
WEBrick
:: HTTPStatus (88)
キーワード
-
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) -
NEWS for Ruby 3
. 0 . 0 (4) - NKF (11)
- [] (11)
-
client
_ error? (11) -
document
_ children (11) -
each
_ codepoint (77) - error? (11)
- form (22)
- hexencode (11)
-
import
_ methods (3) - info? (11)
- new2 (11)
- rake (11)
-
rdoc
/ markdown (11) -
reason
_ phrase (11) - redirect? (11)
-
remove
_ methods _ etc (11) -
server
_ error? (11) - success? (11)
検索結果
先頭2件
-
NEWS for Ruby 3
. 0 . 0 (3372.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 3.0.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス......ord arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matche......precation warning
# 3.0 => a=>1}, {}]
//}
* Arguments forwarding (`...`) now supports leading arguments.
16378
//emlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}
* Pattern matching (`case/in`) is no longer experimental. 17260
* One-line pattern matching is re... -
NKF (850.0)
-
nkf(Network Kanji code conversion Filter, https://osdn.net/projects/nkf/) を Ruby から使うためのモジュールです。
...(Network Kanji code conversion Filter, https://osdn.net/projects/nkf/) を
Ruby から使うためのモジュールです。
=== 使い方
以下は、漢字コード変換コマンドの例です。
//emlist[例][ruby]{
#!/usr/local/bin/ruby
require 'nkf'
opt = ''
opt = ARGV.shift if ARGV[0][......0] == ?-
while line = ARGF.gets
print NKF.nkf(opt, line)
end
//}
以下は、漢字コード判別コマンドの例です。
//emlist[例][ruby]{
#!/usr/local/bin/ruby
require 'nkf'
CODES = {
NKF::JIS => "JIS",
NKF::EUC => "EUC",
NKF::SJIS => "SJIS",
NKF::UTF8 => "U......BINARY => "BINARY",
NKF::ASCII => "ASCII",
NKF::UNKNOWN => "UNKNOWN",
}
while file = ARGV.shift
str = open(file) {|io| io.gets(nil) }
printf "%-10s ", file
if str.nil?
puts "EMPTY"
else
puts CODES.fetch(NKF.guess(str))
end
end
//}
=== オプション文字列
-b...