るりまサーチ (Ruby 3.2)

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

別のキーワード

  1. bigdecimal fix
  2. fix bigdecimal
  3. fix
  4. fix2uint
  5. fix2long

ライブラリ

クラス

キーワード

検索結果

IRB::OutputMethod#ppx(prefix, *objs) -> object (607.0)

引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行 を出力します。

引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行
を出力します。

@param prefix 各 obj の先頭に追記する文字列を指定します。

@param objs 任意のオブジェクトを指定します。

String#start_with?(*prefixes) -> bool (604.0)

self の先頭が prefixes のいずれかであるとき true を返します。

self の先頭が prefixes のいずれかであるとき true を返します。

@param prefixes パターンを表す文字列または正規表現 (のリスト)

//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
"string".start_with?(/\w/) # => true
"strin...

Symbol#end_with?(*suffixes) -> bool (604.0)

self の末尾が suffixes のいずれかであるとき true を返します。

self の末尾が suffixes のいずれかであるとき true を返します。

(self.to_s.end_with?と同じです。)

@param suffixes パターンを表す文字列 (のリスト)

@see Symbol#start_with?

@see String#end_with?

//emlist[][ruby]{
:hello.end_with?("ello") #=> true

# returns true if one of the +suffixes+ matches.
:hello.end_with?("heaven", "...

Symbol#start_with?(*prefixes) -> bool (604.0)

self の先頭が prefixes のいずれかであるとき true を返します。

self の先頭が prefixes のいずれかであるとき true を返します。

(self.to_s.start_with?と同じです。)

@param prefixes パターンを表す文字列または正規表現 (のリスト)

@see Symbol#end_with?

@see String#start_with?

//emlist[][ruby]{
:hello.start_with?("hell") #=> true
:hello.start_with?(/H/i) #=> true

# returns true i...