るりまサーチ

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

別のキーワード

  1. txt strings
  2. resolv strings
  3. resource strings
  4. strings resolv
  5. strings resolv::dns::resource::txt

ライブラリ

キーワード

検索結果

StringScanner#rest -> String (21141.0)

文字列の残り (rest) を返します。 具体的には、スキャンポインタが指す位置からの文字列を返します。

...の残り (rest) を返します。
具体的には、スキャンポインタが指す位置からの文字列を返します。

スキャンポインタが文字列の末尾を指していたら空文字列 ("") を返します。

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

s = StringScanner.new('te...
...st string')
s.rest # => "test string"
s.scan(/\w+/) # => "test"
s.rest # => " string"
s.scan(/\s+/) # => " "
s.rest # => "string"
s.scan(/\w+/) # => "string"
s.rest # => ""
//}...

StringScanner#rest_size -> Integer (9135.0)

文字列の残りの長さを返します。 stringscanner.rest.size と同じです。

...ます。
strings
canner.rest.size と同じです。

StringS
canner#restsize は将来のバージョンで削除される予定です。
代わりにStringScanner#rest_size を使ってください。

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

s = StringScanner.new('test string')
p s.rest_size # => 1...

StringScanner#restsize -> Integer (9135.0)

文字列の残りの長さを返します。 stringscanner.rest.size と同じです。

...ます。
strings
canner.rest.size と同じです。

StringS
canner#restsize は将来のバージョンで削除される予定です。
代わりにStringScanner#rest_size を使ってください。

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

s = StringScanner.new('test string')
p s.rest_size # => 1...

StringScanner#rest? -> bool (9119.0)

文字列が残っているならば trueを、 残っていないならば false を返します。

...false を返します。

StringS
canner#eos? と逆の結果を返します。

StringS
canner#rest? は将来のバージョンで削除される予定です。
代わりに StringScanner#eos? を使ってください。

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

s = StringScanner.new('test string')...
...p s.eos? # => false
p s.rest? # => true
s.scan(/\w+/)
s.scan(/\s+/)
s.scan(/\w+/)
p s.eos? # => true
p s.rest? # => false
//}...

Resolv::DNS::Resource::TXT.new(first_string, *rest_strings) -> Resolv::DNS::Resource::TXT (214.0)

Resolv::DNS::Resource::TXTのインスタンスを生成します。

...Resolv::DNS::Resource::TXTのインスタンスを生成します。

@param first_string レコードの最初の文字列
@param rest_strings レコードの残りの文字列...

絞り込み条件を変える

NEWS for Ruby 3.0.0 (18.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting a single rest argument and no keywords.
16166

//emlist[][ruby]{
pr = proc{|*a, **kw| [a,...
...t has been added, which returns a hash excluding the given keys and their values. 15822
* Windows: Read ENV names and values as UTF-8 encoded Strings 12650
* Encoding
* Added new encoding IBM720. 16233
* Changed default for Encoding.default_external to UTF-8 on Windows 16604
* Fibe...
...* RubyGems
* Update to RubyGems 3.2.3
* StringIO
* Update to StringIO 3.0.0
* This version is Ractor compatible.
* StringScanner
* Update to StringScanner 3.0.0
* This version is Ractor compatible.

== Compatibility issues

Excluding feature bug fixes.

* Regexp literals a...