るりまサーチ

最速Rubyリファレンスマニュアル検索!
622件ヒット [1-100件を表示] (0.057秒)
トップページ > クエリ:String[x] > クエリ:on[x] > 種類:特異メソッド[x]

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

検索結果

<< 1 2 3 ... > >>

String.try_convert(obj) -> String | nil (27230.0)

obj を String に変換しようと試みます。変換には Object#to_str メソッ ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ た場合は nil が返されます。

...obj を String に変換しようと試みます。変換には Object#to_str メソッ
ドが使われます。変換後の文字列を返すか、何らかの理由により変換できなかっ
た場合は nil が返されます。

@param obj 変換する任意のオブジェクト
@return...
...変換後の文字列または nil

//emlist[例][ruby]{
String
.try_convert("str") # => "str"
String
.try_convert(/re/) # => nil
//}...

JSON::Generator::GeneratorMethods::String::Extend.json_create(hash) -> String (12208.0)

JSON のオブジェクトから Ruby の文字列を生成して返します。

...JSON のオブジェクトから Ruby の文字列を生成して返します。

@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。

require 'json'
String
.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A...

RubyVM::InstructionSequence.compile_option -> Hash (9113.0)

命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。

...ctionSequence.compile_option

# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>false,
# :trace_instruction=>true,
# :frozen_string_l...
...iteral=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}

@see RubyVM::InstructionSequence.compile_option=...

StringScanner.must_C_version -> self (9101.0)

このメソッドは後方互換性のために定義されています。

このメソッドは後方互換性のために定義されています。

Readline.completion_append_character=(string) (6236.0)

ユーザの入力の補完が完了した場合に、最後に付加する文字 string を指定します。

...ユーザの入力の補完が完了した場合に、最後に付加する文字 string を指定します。

@param string 1文字を指定します。

@raise NotImplementedError サポートしていない環境で発生します。

半角スペース「" "」などの単語を区切る文字...
...ion_append_character = " "
> /var/li
ここで補完(TABキーを押す)を行う。
> /var/lib
最後に" "が追加されているため、すぐに「/usr」などを入力できる。
> /var/lib /usr

なお、1文字しか指定することはできないため、
例えば、"string"...
...を指定した場合は最初の文字である"s"だけを使用します。

require 'readline'
Readline.completion_append_character = "string"
p Readline.completion_append_character # => "s"

@see Readline.completion_append_character...

絞り込み条件を変える

ERB.version -> String (6202.0)

erb.rbのリビジョン情報を返します。

erb.rbのリビジョン情報を返します。

IRB.version -> String (6202.0)

IRB のバージョンを文字列で返します。

...IRB のバージョンを文字列で返します。

~/.irbrc などの設定ファイル内で IRB.conf[:VERSION] を設定していた場合は
任意のバージョンを返すように設定できます。...

Psych.to_json(o) -> String (6202.0)

Ruby のオブジェクト o を JSON の文字列に変換します。

...Ruby のオブジェクト o を JSON の文字列に変換します。

@param o 変換対象となるオブジェクト...

Readline.completion_append_character -> String (6202.0)

ユーザの入力の補完が完了した場合に、最後に付加する文字を取得します。

...ユーザの入力の補完が完了した場合に、最後に付加する文字を取得します。

@raise NotImplementedError サポートしていない環境で発生します。

@see Readline.completion_append_character=...

URI.decode_www_form_component(str, enc=Encoding::UTF_8) -> String (6202.0)

URL-encoded form data の文字列の各コンポーネント をデコードした文字列を返します。

...st[][ruby]{
require 'uri'
enc = URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
p URI.decode_www_form_component(enc)
# => "Ruby リファレンスマニュアル"
/...
.../}

@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.encode_www_form_component, URI.decode_www_form...

絞り込み条件を変える

<< 1 2 3 ... > >>