るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

ライブラリ

クラス

キーワード

検索結果

StringScanner#clear -> self (18214.0)

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

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

@
return self を返します。

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

//emlist[例][ruby]{
require '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 (6226.0)

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

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

//emlist[][ruby]{
require '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 (3114.0)

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

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

@
return self を返します。

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

//emlist[例][ruby]{
require '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#set_bit!(n) -> self (125.0)

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

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

//emlist[][ruby]{
require 'openssl'

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

@
param n 1にするビットの位置
@
raise OpenSSL::BNError 計算時エラー
@
see OpenSSL::clear_bit!, OpenSSL::bit_set?...

SDBM#update(other) -> self (119.0)

self と other の内容をマージします。

...されます。

@
param other each_pair メソッドを持つオブジェクトでなければなりません。

require 'sdbm'

db1 = SDBM.open('aaa.gdbm', 0666)
db1.clear
db1['a'] = 'aaa'
db1['b'] = 'bbb'
db1['c'] = 'ccc'
db2 = SDBM.open('bbb.gdbm', 0666)
db2.clear
db2['c'] =...

絞り込み条件を変える