114件ヒット
[1-100件を表示]
(0.067秒)
ライブラリ
- ビルトイン (54)
-
fiddle
/ import (12) -
irb
/ context (12) - openssl (24)
-
rinda
/ rinda (12)
検索結果
-
OpenSSL
:: ASN1 :: Integer (6017.0) -
ASN.1 の Integer 型(Universal タグのタグ番号2)を表すクラスです。
...ASN.1 の Integer 型(Universal タグのタグ番号2)を表すクラスです。... -
Integer (6013.0)
-
整数クラスです。
...。
整数オブジェクトに特異メソッドを追加する事はできません。追加した場合、
TypeError が発生します。
2.4.0 から Fixnum, Bignum は Integerに統合されました。
2.4.0 からはどちらも Integer クラスのエイリアスとなっています。......整数クラスです。
整数オブジェクトに特異メソッドを追加する事はできません。追加した場合、
TypeError が発生します。
かつて Integer クラスのエイリアスであった Fixnum と Bignum は 3.2 で削除されました。... -
Numeric (101.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...数値を表す抽象クラスです。Integer や Float などの数値クラス
は Numeric のサブクラスとして実装されています。
演算や比較を行うメソッド(+, -, *, /, <=>)は Numeric のサブクラスで定義されま
す。Numeric で定義されているメソッ......れのクラスを参照してください。
=> ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
Numeric Integer Fixnum Bignum Float Rational Complex
------------------------------------------------------------------------------......d
//}
また、任意桁の切上げ、切捨て、四捨五入を行うメソッドは以下のように
定義できます。
//emlist[][ruby]{
class Numeric
def roundup(d=0)
x = 10**d
if self > 0
self.quo(x).ceil * x
else
self.quo(x).floor * x
end
end
def roun......クラスを参照してください。
=> ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin15]
Numeric Integer Float Rational Complex
--------------------------------------------------------------------------------
% |... -
Rinda
:: Template (25.0) -
タプルのマッチングのためのクラスです。 ユーザがこのクラスを直接使うことはありません。
...# => false
template = Rinda::Template.new([String, Integer, nil])
template.match(['abc', 2, 5]) # => true
template.match(['abcd', 2, 5]) # => true
template = Rinda::Template.new([/^abc/, Integer, nil])
template.match([/^abc/, Integer, nil]) # => true
template.match(['abc', 2, 5])......# => true
template.match(['def', 2, 5]) # => false
template = Rinda::Template.new({'name' => String, 'age' => Integer})
template.match({'name' => 'seki', 'age' => 0x20}) # => true
template.match({'name' => :seki, 'age' => 0x20}) # => false... -
Bignum (17.0)
-
Alias of Integer
...Alias of Integer... -
Fixnum (17.0)
-
Alias of Integer
...Alias of Integer... -
Fiddle
:: CStruct (7.0) -
C の構造体を表すクラスです。
...require 'fiddle/import'
include Fiddle::Importer
S = struct(["long foo", "void* bar"])
とすると、 S#foo, S#foo= というアクセサが Integer とやりとり
するように定義され、 S#bar, S#bar= というアクセサが Fiddle::Pointer
でやりとりするように定義され... -
IRB
:: Context (7.0) -
irb の設定を扱うためのクラスです。
...成した時(サブ irb の起動や pushws した時)に、
ワークスペースに関連する Binding オブジェクトの作成方法を
Integer で設定します。
0 を指定した場合、Object::TOPLEVEL_BINDING の Proc 内の
Binding を使用します。1 を指定した場... -
OpenSSL
:: BN (7.0) -
OpenSSL内で利用される多倍長整数クラスです。
...OpenSSL内で利用される多倍長整数クラスです。
通常多倍長整数を利用するには Integer を用いてください。...