4件ヒット
[1-4件を表示]
(0.185秒)
別のキーワード
クラス
-
Net
:: HTTPGenericRequest (1) - Pathname (2)
- StringScanner (1)
キーワード
-
body
_ exist? (1) - delete (1)
- unlink (1)
検索結果
先頭4件
-
StringScanner
# exist?(regexp) -> Integer | nil (73204.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.exis... -
Net
:: HTTPGenericRequest # body _ exist? -> bool (45307.0) -
このメソッドは obsolete です。
このメソッドは obsolete です。
Net::HTTPGenericRequest#response_body_permitted?
の別名です。 -
Pathname
# unlink -> Integer (18640.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//} -
Pathname
# delete -> Integer (9640.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}