24件ヒット
[1-24件を表示]
(0.007秒)
ライブラリ
- forwardable (12)
- nkf (12)
キーワード
- Forwardable (12)
- NKF (12)
検索結果
先頭2件
-
Forwardable (13.0)
-
クラスに対し、メソッドの委譲機能を定義するモジュールです。
...す。Module#include でないところに注意して下さい。
例:
require 'forwardable'
class Foo
extend Forwardable
def_delegators("@out", "printf", "print")
def_delegators(:@in, :gets)
def_delegator(:@contents, :[], "content_at")
end
f = Foo.new
f.printf ...... -
NKF (7.0)
-
nkf(Network Kanji code conversion Filter, https://osdn.net/projects/nkf/) を Ruby から使うためのモジュールです。
...NARY => "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 入...