るりまサーチ

最速Rubyリファレンスマニュアル検索!
41件ヒット [1-41件を表示] (0.010秒)

別のキーワード

  1. _builtin empty?
  2. csv empty?
  3. dbm empty?
  4. sdbm empty?
  5. gdbm empty?

種類

ライブラリ

検索結果

NKF (38122.0)

nkf(Network Kanji code conversion Filter, https://osdn.net/projects/nkf/) を Ruby から使うためのモジュールです。

...nkf(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[...
... 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 => "UTF8",
NKF
::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 入力がバッファリン...

ruby 1.8.2 feature (54.0)

ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。

...by-dev:25048>))

=== 2004-12-04
: NKF.guess [lib] [compat]
NKF
.guess は NKF.guess2 の alias になりました。 従来のものを使いたい場合は
NKF
.guess1 を使って下さい。

=== 2004-11-20
: ext/nkf/nkf-utf8/ [lib] [new]
utf8 対応 nkf (nkf 2.x) の追加。

: kconv [lib]...
...: StringScanner#peep [lib] [obsolete]
$VERVOSE が設定されている時に警告がでるようになりました。use #peek.
: StringScanner#empty? [lib] [obsolete]
$VERVOSE が設定されている時に警告がでるようになりました。use #eos?.
: StringScanner#clear [lib] [obsol...

ruby 1.8.4 feature (36.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

....y (dsym): prohibit empty symbol literal by interpolation.
# fixed: [ruby-talk:166529]

式展開で空のSymbolを作ることができたバグの修正。 ((<ruby-talk:166529>))

p :""

# => ruby 1.8.3 (2005-09-21) [i686-linux]
-:1: empty symbol literal...
...# => ruby 1.8.4 (2005-12-16) [i686-linux]
-:1: empty symbol literal

p :"#{""}"

# => ruby 1.8.3 (2005-09-21) [i686-linux]
:
# => ruby 1.8.4 (2005-12-16) [i686-linux]
-:1: empty symbol literal

: Symbol [bug]

#Sat Oct 22 13:26:57 2005...
...ing=): give priority to particular
# conversion to iconv. [ruby-core:06520]

日本語のエンコーディング変換にiconvよりもnkfを優先して使用するようにし
ました。((<ruby-list:41325>)), ((<ruby-core:06520>))

: TCPSocket#initialize [bug]
: TCPServer#initi...

NEWS for Ruby 3.0.0 (18.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...ead of
a warning.

== Command line options

=== `--help` option

When the environment variable `RUBY_PAGER` or `PAGER` is present and has
a non-empty value, and the standard input and output are tty, the `--help`
option shows the help message via the pager designated by the value.
16754

=== `--...
...* weakref
* The following extensions are promoted to default gems from stdlib.
* digest
* io-nonblock
* io-wait
* nkf
* pathname
* syslog
* win32ole
* Bundled gems
* net-telnet and xmlrpc have been removed from the bundled gems. If you are i...
...b
# Classes
class Object
def foo : (Integer) -> String?
end
//}

== Miscellaneous changes

* Methods using `ruby2_keywords` will no longer keep empty keyword splats, those are now removed just as they are for methods not using `ruby2_keywords`.
* When an exception is caught in the default hand...