4件ヒット
[1-4件を表示]
(0.157秒)
別のキーワード
ライブラリ
- ビルトイン (3)
-
irb
/ output-method (1)
クラス
-
IRB
:: OutputMethod (1) - String (1)
- Symbol (2)
キーワード
-
end
_ with? (1) - ppx (1)
-
start
_ with? (2)
検索結果
先頭4件
-
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...