タグ

ruby-1.9.3とstringに関するnabinnoのブックマーク (2)

  • class String (Ruby 1.9.3)

    クラスの継承リスト: String < Comparable < Object < Kernel < BasicObject dynamic include: JSON::Generator::GeneratorMethods::String (by json) dynamic extend: JSON::Generator::GeneratorMethods::String::Extend (by json) 要約 文字列のクラスです。 NUL 文字を含む任意のバイト列を扱うことができます。 文字列の長さにはメモリ容量以外の制限はありません。 文字列は通常、文字列リテラルを使って生成します。 以下に文字列リテラルの例をいくつか示します。 'str\\ing' # シングルクオート文字列 (エスケープシーケンスがほぼ無効) "string\n" # ダブルクオート文字列 (エスケープシーケ

  • Class: String (Ruby 1.9.3)

    A String object holds and manipulates an arbitrary sequence of bytes, typically representing characters. String objects may be created using String::new or as literals. Because of aliasing issues, users of strings should be aware of the methods that modify the contents of a String object. Typically, methods with names ending in “!'' modify their receiver, while those without a “!'' return a new St

  • 1