6878件ヒット
[1-100件を表示]
(0.143秒)
種類
ライブラリ
- English (24)
- ビルトイン (2916)
-
bigdecimal
/ util (7) - csv (84)
- digest (12)
- e2mmap (54)
- erb (24)
- etc (12)
- fiddle (12)
-
fiddle
/ import (24) - forwardable (48)
- getoptlong (24)
-
irb
/ extend-command (12) - json (156)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - logger (1)
-
minitest
/ unit (1) - monitor (12)
-
mutex
_ m (24) -
net
/ http (12) -
net
/ imap (12) -
net
/ pop (12) - objspace (48)
- openssl (960)
- optparse (192)
- pp (24)
- psych (31)
- rake (48)
- rdoc (12)
-
rdoc
/ context (84) -
rdoc
/ generator / json _ index (12) -
rdoc
/ known _ classes (12) -
rdoc
/ markup (12) -
rdoc
/ parser (12) -
rdoc
/ single _ class (12) -
rdoc
/ stats (12) -
rdoc
/ top _ level (48) - resolv (12)
-
rexml
/ document (24) -
rexml
/ streamlistener (12) -
ripper
/ filter (12) -
rubygems
/ digest / digest _ adapter (12) -
rubygems
/ ext / builder (12) -
rubygems
/ gem _ openssl (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ version (12) - set (9)
-
shell
/ command-processor (6) - singleton (12)
- socket (72)
- thread (2)
- timeout (49)
- tracer (60)
- tsort (47)
- uri (24)
-
webrick
/ httpauth / authenticator (24) -
webrick
/ httpauth / userdb (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httpstatus (12) -
webrick
/ httputils (96) -
win32
/ registry (228) - win32ole (96)
クラス
-
ARGF
. class (764) - Array (12)
- BasicObject (144)
- BigDecimal (12)
- CSV (84)
- Class (24)
- Complex (12)
- Data (6)
- Date (12)
- DateTime (12)
- Dir (72)
- ERB (12)
-
Enumerator
:: Lazy (12) -
Etc
:: Passwd (12) - Exception (24)
- FalseClass (24)
- File (60)
-
Gem
:: DigestAdapter (12) -
Gem
:: Ext :: Builder (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: Version (12) - GetoptLong (24)
- IO (60)
- Integer (12)
-
JSON
:: Parser (12) -
JSON
:: State (24) - Method (95)
-
MiniTest
:: Unit :: TestCase (1) - Module (533)
- NameError (10)
-
Net
:: HTTPResponse (12) -
Net
:: IMAP (12) -
Net
:: POP3 (12) - NilClass (170)
- Object (332)
-
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Boolean (12) -
OpenSSL
:: ASN1 :: Enumerated (12) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GeneralizedTime (24) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: Integer (24) -
OpenSSL
:: ASN1 :: Null (12) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: ObjectId (24) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: Sequence (12) -
OpenSSL
:: ASN1 :: Set (12) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTCTime (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) - OptionParser (192)
-
RDoc
:: Context (84) -
RDoc
:: Generator :: JsonIndex (12) -
RDoc
:: Markup (12) -
RDoc
:: Parser (12) -
RDoc
:: Stats (12) -
RDoc
:: TopLevel (48) -
REXML
:: CData (24) - Range (24)
- Rational (12)
- Regexp (24)
-
RubyVM
:: InstructionSequence (12) - Set (12)
-
Shell
:: CommandProcessor (6) - Socket (36)
- String (12)
- Struct (28)
- Thread (24)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TracePoint (48)
- Tracer (60)
- TrueClass (24)
-
URI
:: Generic (24) - UnboundMethod (36)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPServlet :: FileHandler (12) -
WEBrick
:: HTTPUtils :: FormData (96) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (48) -
WIN32OLE
_ TYPELIB (36) -
Win32
:: Registry (108) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
-
ERB
:: DefMethod (12) - Enumerable (96)
- Exception2MessageMapper (54)
-
Fiddle
:: Importer (24) - Forwardable (36)
-
Gem
:: SSL (12) -
IRB
:: ExtendCommandBundle (12) - JSON (36)
-
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (184)
- Marshal (24)
-
Mutex
_ m (24) - ObjectSpace (108)
-
OpenSSL
:: ASN1 (480) - Psych (19)
- RDoc (24)
-
REXML
:: StreamListener (12) -
Rake
:: TaskManager (24) -
Socket
:: Constants (36) - TSort (47)
- Timeout (21)
-
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (12) -
WEBrick
:: HTTPAuth :: UserDB (12) -
WEBrick
:: HTTPStatus (12) -
Win32
:: Registry :: Constants (108)
キーワード
- ! (12)
- != (12)
-
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
$ FILENAME (12) - & (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <=> (12)
- == (24)
- === (12)
- =~ (7)
- APOP (12)
- ARGF (12)
- Application (1)
- AuthException (24)
- BMPString (24)
- BasicObject (12)
- BitString (24)
- Boolean (12)
-
CLASS
_ MODIFIERS (12) - Closure (12)
- ConditionVariable (12)
-
DIGEST
_ SHA1 (12) - Enumerated (12)
- Error (12)
- Fail (12)
- Filter (12)
- GeneralString (24)
- GeneralizedTime (24)
- GraphicString (24)
-
HKEY
_ CLASSES _ ROOT (24) -
HKEY
_ CURRENT _ CONFIG (24) -
HKEY
_ CURRENT _ USER (24) -
HKEY
_ DYN _ DATA (24) -
HKEY
_ LOCAL _ MACHINE (24) -
HKEY
_ PERFORMANCE _ DATA (24) -
HKEY
_ PERFORMANCE _ NLSTEXT (24) -
HKEY
_ PERFORMANCE _ TEXT (24) -
HKEY
_ USERS (24) - IA5String (24)
- IN (12)
-
IPPROTO
_ TP (24) -
IPV6
_ RECVTCLASS (24) -
IPV6
_ TCLASS (24) - ISO64String (24)
- Integer (24)
-
KNOWN
_ CLASSES (12) - Location (12)
- Marshal フォーマット (12)
- MonitorMixin (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - NIL (8)
- NilClass (36)
- Null (12)
- Numeric (12)
- NumericString (24)
- ObjectId (24)
- OctetString (24)
- Options (12)
-
PASSTHROUGH
_ EXCEPTIONS (1) - PrintableString (24)
- Raise (12)
- ReFe (12)
- Requirement (12)
- Ruby用語集 (12)
- Sequence (12)
- Set (12)
- SingleClass (12)
- SingleForwardable (12)
- Singleton (12)
- String (12)
- T61String (24)
- TYPES (12)
- UTCTime (24)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
- Visitors (12)
- [] (48)
- ^ (12)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (12) - accept (24)
-
add
_ authenticator (12) -
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ filter (24) -
add
_ module (12) -
add
_ special (12) -
all
_ classes _ and _ modules (12) -
append
_ features (12) - arity (24)
-
attr
_ writer (5) -
auth
_ type (12) - autoload (24)
- autoload? (12)
- backtrace (12)
-
base
_ label (12) - bind (12)
- binmode (12)
- binmode? (12)
-
boot
_ defclass (12) -
callee
_ id (12) - cgi (12)
-
cgi
/ session (12) - class (12)
-
class
_ eval (12) -
class
_ name (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - classes (12)
- classify (12)
- classname (12)
- codepoints (14)
- component (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) - constants (12)
-
count
_ objects _ size (12) -
count
_ tdata _ objects (12) -
create
_ id (12) -
create
_ id= (12) - debug (12)
-
def
_ builtin _ commands (6) -
def
_ delegator (12) -
def
_ erb _ method (12) -
def
_ exception (12) -
def
_ extend _ command (12) -
def
_ instance _ delegator (12) -
default
_ event _ sources (12) -
default
_ port (12) - define (6)
-
define
_ aliases (12) -
define
_ finalizer (24) -
define
_ method (24) -
define
_ singleton _ method (24) -
define
_ task (12) -
defined
_ class (12) - display (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - dump (24)
- each (36)
-
each
_ char (24) -
each
_ classmodule (12) -
each
_ codepoint (24) -
each
_ data (12) -
each
_ line (48) -
each
_ object (24) -
each
_ strongly _ connected _ component (12) -
each
_ strongly _ connected _ component _ from (23) - entitydecl (12)
- error (12)
- error? (12)
-
external
_ encoding (12) - fail (42)
- file (12)
- filename (24)
- filename= (12)
- fileno (12)
-
find
_ class _ named (12) -
find
_ class _ path (12) -
find
_ local _ symbol (12) -
fixed
_ encoding? (12) -
for
_ fd (12) -
from
_ state (12) - getbyte (12)
- getc (12)
- gets (36)
-
global
_ variables (12) - handler= (12)
-
http
_ version (12) - include (12)
- include? (12)
-
include
_ class _ new (12) - included (12)
- inherited (12)
- initialize (12)
-
initialize
_ classes _ and _ modules (12) -
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) -
ins
_ methods _ i (12) -
ins
_ methods _ priv _ i (12) -
ins
_ methods _ prot _ i (12) - inspect (84)
-
instance
_ delegate (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) - intern (12)
-
internal
_ encoding (12) - irb (12)
-
irb
/ completion (12) -
is
_ a? (12) -
kind
_ of? (12) - lineno (12)
- lineno= (12)
- lines (42)
- list (12)
-
local
_ variables (12) - max (24)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ undefined (12) - methods (12)
- min (48)
-
minitest
/ unit (1) -
module
_ eval (12) - name (24)
- name= (12)
- nesting (12)
- new (664)
- nil? (12)
-
num
_ classes (12) -
ole
_ classes (24) -
ole
_ type (12) -
ole
_ types (12) - on (156)
- open (144)
-
original
_ name (24) -
parse
_ files _ matching (12) - path (24)
- pathmap (12)
- pos (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - puts (12)
- raise (36)
-
rake
/ classic _ namespace (12) -
rake
_ extension (12) - rationalize (24)
-
rb
_ class _ allocate _ instance (12) -
rb
_ class _ inherited (12) -
rb
_ class _ initialize (12) -
rb
_ class _ instance _ methods (12) -
rb
_ class _ new _ instance (12) -
rb
_ class _ private _ instance _ methods (12) -
rb
_ class _ protected _ instance _ methods (12) -
rb
_ class _ s _ new (12) -
rb
_ class _ superclass (12) -
rb
_ clear _ cache _ by _ class (12) -
rb
_ define _ class (12) -
rb
_ define _ class _ id (12) -
rb
_ define _ class _ under (12) -
rb
_ define _ class _ variable (12) -
rb
_ frozen _ class _ p (12) -
rb
_ is _ class _ id (12) -
rb
_ mod _ class _ variables (12) -
rb
_ name _ class (12) -
rb
_ set _ class _ path (12) -
rb
_ singleton _ class (12) -
rb
_ singleton _ class _ attached (12) -
rb
_ singleton _ class _ clone (12) -
rb
_ singleton _ class _ new (12) - rdoc (12)
-
rdoc
/ generator / json _ index (12) -
rdoc
/ single _ class (12) -
reachable
_ objects _ from (12) - read (24)
-
read
_ nonblock (12) - readbyte (24)
- readchar (12)
- readline (36)
- readlines (48)
- readpartial (12)
- receiver (22)
- refine (12)
- reject (24)
-
remove
_ class _ variable (12) -
remove
_ handler (12) -
remove
_ instance _ variable (12) - request (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - rewind (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
safe
_ load (19) - seek (12)
-
set
_ encoding (36) -
set
_ get _ line _ procs (24) -
set
_ trace _ func (12) -
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - skip (12)
-
sort
_ by (24) -
source
_ location (12) - stat (12)
- struct (12)
-
super
_ method (11) - superclass (24)
- tell (12)
-
test
/ unit (1) - timeout (37)
-
to
_ a (60) -
to
_ ary (12) -
to
_ bn (12) -
to
_ c (12) -
to
_ d (7) -
to
_ f (12) -
to
_ h (12) -
to
_ i (24) -
to
_ int (12) -
to
_ io (12) -
to
_ json (168) -
to
_ json _ raw _ object (12) -
to
_ r (12) -
to
_ s (108) -
to
_ str (12) -
to
_ write _ io (12) -
trace
_ object _ allocations (12) - tracer (12)
- traverse (12)
- tsort (12)
-
tsort
_ each (12) - uclass (12)
- unbind (12)
-
undefine
_ finalizer (12) - union (12)
- value (24)
-
webrick
/ cgi (12) - write (12)
- | (12)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- パターンマッチ (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
- 変数と定数 (12)
- 字句構造 (12)
- 正規表現 (12)
- 演算子式 (12)
検索結果
先頭5件
-
Class
# superclass -> Class | nil (27319.0) -
自身のスーパークラスを返します。
...//emlist[例][ruby]{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
BasicObject.......superclass #=> nil
//}......superclass #=> nil
//}
@see Class#subclasses... -
Class
# inherited(subclass) -> () (27236.0) -
クラスのサブクラスが定義された時、新しく生成されたサブクラスを引数 にインタプリタから呼び出されます。このメソッドが呼ばれるタイミングは クラス定義文の実行直前です。
...ubclass プログラム内で新たに定義された自身のサブクラスです。
//emlist[例][ruby]{
class Foo
def Foo.inherited(subclass)
puts "class \"#{self}\" was inherited by \"#{subclass}\""
end
end
class Bar < Foo
puts "executing class body"
end
# => class "Foo" was inherit......ed by "Bar"
# executing class body
//}... -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (23319.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
...
irb に cmd_name で指定したメソッドが実行できるように拡張します。
@param cmd_name メソッド名を Symbol か文字列で指定します。
cmd_class で指定するクラスの execute メソッドとして定
義してある必要があ......param cmd_class 指定した拡張が定義されたクラス名を Symbol、
String、Class のいずれかで指定します。
なお、このクラスは IRB::ExtendCommand 以下で定義
する必要があります。
@param load_file 指定......に require されます。
@param aliases cmd_name の別名を Symbol とフラグの配列で指定しま
す。複数指定する事ができます。フラグは
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONL... -
IO
. for _ fd(fd , mode = "r" , **opts) -> IO (23118.0) -
オープン済みのファイルディスクリプタ fd に対する新しい IO オブジェクトを生成して返します。
...オープン済みのファイルディスクリプタ fd に対する新しい
IO オブジェクトを生成して返します。
IO.open にブロックが与えられた場合、IO オブジェクトを生成しそれを引数としてブロックを
実行します。ブロックの終了と......ロックの結果を返します。
IO.new, IO.for_fd はブロックを受け付けません。
=== キーワード引数
このメソッドは以下のキーワード引数を利用できます。
* :mode mode引数と同じ意味です
* :external_encoding 外部エンコーディング。"......ワード引数
@raise Errno::EXXX IO オブジェクトの生成に失敗した場合に発生します。
//emlist[例:IO.new による読み込みモードでのファイルオープン][ruby]{
io = IO.new(IO.sysopen("testfile"))
io.class # => IO
io.close
//}
//emlist[例:IO.for_fd による... -
IO
. new(fd , mode = "r" , **opts) -> IO (23118.0) -
オープン済みのファイルディスクリプタ fd に対する新しい IO オブジェクトを生成して返します。
...オープン済みのファイルディスクリプタ fd に対する新しい
IO オブジェクトを生成して返します。
IO.open にブロックが与えられた場合、IO オブジェクトを生成しそれを引数としてブロックを
実行します。ブロックの終了と......ロックの結果を返します。
IO.new, IO.for_fd はブロックを受け付けません。
=== キーワード引数
このメソッドは以下のキーワード引数を利用できます。
* :mode mode引数と同じ意味です
* :external_encoding 外部エンコーディング。"......ワード引数
@raise Errno::EXXX IO オブジェクトの生成に失敗した場合に発生します。
//emlist[例:IO.new による読み込みモードでのファイルオープン][ruby]{
io = IO.new(IO.sysopen("testfile"))
io.class # => IO
io.close
//}
//emlist[例:IO.for_fd による... -
IO
. open(fd , mode = "r" , **opts) -> IO (23118.0) -
オープン済みのファイルディスクリプタ fd に対する新しい IO オブジェクトを生成して返します。
...オープン済みのファイルディスクリプタ fd に対する新しい
IO オブジェクトを生成して返します。
IO.open にブロックが与えられた場合、IO オブジェクトを生成しそれを引数としてブロックを
実行します。ブロックの終了と......ロックの結果を返します。
IO.new, IO.for_fd はブロックを受け付けません。
=== キーワード引数
このメソッドは以下のキーワード引数を利用できます。
* :mode mode引数と同じ意味です
* :external_encoding 外部エンコーディング。"......ワード引数
@raise Errno::EXXX IO オブジェクトの生成に失敗した場合に発生します。
//emlist[例:IO.new による読み込みモードでのファイルオープン][ruby]{
io = IO.new(IO.sysopen("testfile"))
io.class # => IO
io.close
//}
//emlist[例:IO.for_fd による... -
IO
. open(fd , mode = "r" , **opts) {|io| . . . } -> object (23118.0) -
オープン済みのファイルディスクリプタ fd に対する新しい IO オブジェクトを生成して返します。
...オープン済みのファイルディスクリプタ fd に対する新しい
IO オブジェクトを生成して返します。
IO.open にブロックが与えられた場合、IO オブジェクトを生成しそれを引数としてブロックを
実行します。ブロックの終了と......ロックの結果を返します。
IO.new, IO.for_fd はブロックを受け付けません。
=== キーワード引数
このメソッドは以下のキーワード引数を利用できます。
* :mode mode引数と同じ意味です
* :external_encoding 外部エンコーディング。"......ワード引数
@raise Errno::EXXX IO オブジェクトの生成に失敗した場合に発生します。
//emlist[例:IO.new による読み込みモードでのファイルオープン][ruby]{
io = IO.new(IO.sysopen("testfile"))
io.class # => IO
io.close
//}
//emlist[例:IO.for_fd による... -
IO
# readbyte -> Integer (23106.0) -
IO から1バイトを読み込み整数として返します。 既に EOF に達していれば EOFError が発生します。
...
IO から1バイトを読み込み整数として返します。
既に EOF に達していれば EOFError が発生します。
@raise EOFError 既に EOF に達している場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "123")
File.open("testfile") do |f|
begin
f.rea......dbyte # => 49
f.readbyte # => 50
f.readbyte # => 51
f.readbyte # => 例外発生
rescue => e
e.class # => EOFError
end
end
//}... -
Integer
# to _ bn -> OpenSSL :: BN (23012.0) -
Integer を同じ数を表す OpenSSL::BN のオブジェクトに 変換します。
...
Integer を同じ数を表す OpenSSL::BN のオブジェクトに
変換します。
//emlist[][ruby]{
require 'pp'
require 'openssl'
pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}
なお、実装は、以下のようになっています。
//emlist[][ruby]{
clas......s Integer
def to_bn
OpenSSL::BN::new(self)
end
end
//}
@see OpenSSL::BN.new, OpenSSL::BN#to_i......
Integer を同じ数を表す OpenSSL::BN のオブジェクトに
変換します。
//emlist[][ruby]{
require 'openssl'
pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}
なお、実装は、以下のようになっています。
//emlist[][ruby]{
class Integer
d......ef to_bn
OpenSSL::BN::new(self)
end
end
//}
@see OpenSSL::BN.new, OpenSSL::BN#to_i...
