るりまサーチ

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

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

検索結果

StringScanner#exist?(regexp) -> Integer | nil (24201.0)

スキャンポインタの位置から,次にマッチする文字列の末尾までの長さを返します。

... nil を返します。

このメソッドはマッチが成功してもスキャンポインタを進めません。

@param regexp マッチに用いる正規表現を指定します。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new('test string')
s.exist?(/s/) # => 3
s.exist?(//)...
...# => 0
s.scan(/\w+/) # => "test"
s.exist?(/s/) # => 2
s.exist?(/e/) # => nil
//}...

Pathname#exist? -> bool (24102.0)

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

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


@see FileTest.#exist?...

Shell::CommandProcessor#exist?(file) -> bool (24101.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#exist? FileTest.#exists?...

Shell::ProcessController#waiting_jobs_exist? -> bool (18302.0)

待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。

待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。

Shell::ProcessController#active_jobs_exist? -> bool (15202.0)

実行中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。

実行中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。

絞り込み条件を変える

Pathname#unlink -> Integer (9113.0)

self が指すディレクトリあるいはファイルを削除します。

...self が指すディレクトリあるいはファイルを削除します。

//emlist[例][ruby]{
require "pathname"

pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}...

Shell::CommandProcessor#exists?(file) -> bool (9001.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#exist? FileTest.#exists?...

Pathname#delete -> Integer (6113.0)

self が指すディレクトリあるいはファイルを削除します。

...self が指すディレクトリあるいはファイルを削除します。

//emlist[例][ruby]{
require "pathname"

pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}...