るりまサーチ

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

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

クラス

キーワード

検索結果

StringScanner#clear -> self (27226.0)

スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。

...てます。

@
return self を返します。

pos = self.string.size と同じ動作です。

//emlist[例][ruby]{
r
equire 'strscan'

s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched #...
...=> nil
s[0] # => nil
s.pos # => 11
//}

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

OpenSSL::BN#clear_bit!(n) -> self (18338.0)

自身の n ビット目を0にします。

...自身の n ビット目を0にします。

//emlist[][ruby]{
r
equire 'openssl'

a = OpenSSL::BN.new("129")
a.clear_bit!(0)
a # => 128
//}

@
param n 0にするビットの位置
@
raise OpenSSL::BNError 計算時エラー
@
see OpenSSL::set_bit!...

StringScanner#terminate -> self (18326.0)

スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。

...てます。

@
return self を返します。

pos = self.string.size と同じ動作です。

//emlist[例][ruby]{
r
equire 'strscan'

s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched #...
...=> nil
s[0] # => nil
s.pos # => 11
//}

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