310件ヒット
[301-310件を表示]
(0.080秒)
別のキーワード
種類
- インスタンスメソッド (157)
- 特異メソッド (72)
- モジュール関数 (48)
- 文書 (21)
- ライブラリ (12)
クラス
-
Net
:: HTTPResponse (12) - Refinement (4)
- Regexp (22)
- String (141)
- WIN32OLE (12)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Ruby用語集 (12)
- codepage (12)
- codepoints (24)
- compile (11)
-
decode
_ www _ form _ component (12) -
each
_ codepoint (24) - encode (43)
- encode! (24)
- encode64 (12)
-
encode
_ www _ form _ component (12) - escape (7)
- hexencode (12)
-
import
_ methods (4) - kconv (12)
- new (11)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) -
url
_ encode (12) -
urlsafe
_ encode64 (12)
検索結果
-
kconv (162.0)
-
日本語文字コードの変換を手軽に行うためのライブラリです。
...。
kconv を require すると String クラスに変換用のメソッドが定義されます。
Kconv にも同等のメソッドが定義されます。 Kconv には
エンコーディングを表す定数も定義されています。
1.9.1 以降では、Ruby の m17n 機能を用いてエ....../emlist[][ruby]{
require 'kconv'
newstring = Kconv.kconv(string, Kconv::JIS, Kconv::AUTO)
newstring = Kconv.tojis(string)
newstring = Kconv.toeuc(string)
newstring = Kconv.tosjis(string)
guessed_code = Kconv.guess(string)
//}
または
//emlist[][ruby]{
require 'kconv'
newstring = string.kconv(Kco......nv::JIS, Kconv::AUTO)
newstring = string.tojis
newstring = string.toeuc
newstring = string.tosjis
//}... -
Refinement
# import _ methods(*modules) -> self (66.0) -
モジュールからメソッドをインポートします。
...ッドをコピーするため、Rubyコードで定義されたメソッドだけしか
インポートできないことに注意してください。
//emlist[][ruby]{
module StrUtils
def indent(level)
' ' * level + self
end
end
module M
refine String do
import_methods StrUtils......end
end
using M
p "foo".indent(3) # => " foo"
module M
refine String do
import_methods Enumerable
# Can't import method which is not defined with Ruby code: Enumerable#drop
end
end
//}...