ライブラリ
- ビルトイン (114)
-
cgi
/ core (11) - csv (11)
- fileutils (11)
- json (11)
- matrix (22)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (22)
- openssl (110)
- resolv (11)
- socket (253)
-
webrick
/ httpauth / authenticator (11)
クラス
- CSV (11)
- Data (2)
-
Encoding
:: Converter (11) -
JSON
:: State (11) - Matrix (22)
- Module (11)
- Object (12)
-
OpenSSL
:: PKey :: RSA (11) -
OpenSSL
:: SSL :: SSLContext (11) -
Resolv
:: DNS :: Name (11) -
RubyVM
:: InstructionSequence (44)
モジュール
-
CGI
:: QueryExtension (11) -
File
:: Constants (11) - FileUtils (11)
- Kernel (44)
-
MiniTest
:: Assertions (2) -
OpenSSL
:: ASN1 (11) -
OpenSSL
:: Buffering (22) -
OpenSSL
:: OCSP (11) -
OpenSSL
:: SSL (22) -
OpenSSL
:: X509 (11) -
RubyVM
:: AbstractSyntaxTree (2) -
Socket
:: Constants (253) -
WEBrick
:: HTTPAuth :: Authenticator (11)
キーワード
-
IFF
_ MASTER (11) -
IFF
_ NOTRAILERS (11) -
IFF
_ SLAVE (11) -
IFF
_ SUPP _ NOFCS (11) -
IPV6
_ RTHDR (11) -
IPV6
_ RTHDRDSTOPTS (11) -
IP
_ MTU (11) -
IP
_ ROUTER _ ALERT (11) -
IP
_ TOS (11) -
MSG
_ COMPAT (11) -
MSG
_ EOF (11) -
MSG
_ FLUSH (11) -
MSG
_ OOB (11) -
NI
_ NOFQDN (11) - NOFOLLOW (11)
-
OP
_ MICROSOFT _ BIG _ SSLV3 _ BUFFER (11) -
OP
_ MICROSOFT _ SESS _ ID _ BUG (11) -
REVOKED
_ STATUS _ CESSATIONOFOPERATION (11) - ResponseInfoField (11)
-
SESSION
_ CACHE _ OFF (11) -
SO
_ BROADCAST (11) -
SO
_ OOBINLINE (11) -
SO
_ PEERCRED (11) -
SO
_ PEERNAME (11) - Signer (11)
-
TCP
_ KEEPCNT (11) -
TCP
_ LINGER2 (11) -
TCP
_ NOPUSH (11) -
TCP
_ SYNCNT (11) -
TCP
_ WINDOW _ CLAMP (11) -
V
_ ERR _ OUT _ OF _ MEM (11) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) - autoload (22)
- autoload? (11)
-
base
_ label (11) -
check
_ signedness (22) -
cofactor
_ expansion (11) -
deconstruct
_ keys (2) - eof (11)
- eof? (11)
-
first
_ lineno (11) -
instance
_ of? (11) - iqmp (11)
- label (11)
-
laplace
_ expansion (11) -
must
_ be _ instance _ of (1) - new (22)
-
primitive
_ convert (11) -
rb
_ mod _ const _ of (11) -
rb
_ obj _ is _ instance _ of (11) -
rb
_ time _ timespec _ new (9) -
rubygems
/ commands / uninstall _ command (11) -
server
_ software (11) -
subdomain
_ of? (11) - traverse (11)
検索結果
先頭5件
- RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - MiniTest
:: Assertions # assert _ instance _ of(klass , object , message = nil) -> true - WEBrick
:: HTTPAuth :: Authenticator :: ResponseInfoField -> String - FileUtils
. options _ of(mid) -> Array - OpenSSL
:: OCSP :: REVOKED _ STATUS _ CESSATIONOFOPERATION -> Integer
-
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (27437.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...:InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_bin......ding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/iseq_of.rb
def hello
puts "hello, world"
end
$a_global_......+ 'b' }
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x00... -
MiniTest
:: Assertions # assert _ instance _ of(klass , object , message = nil) -> true (24307.0) -
与えられたオブジェクトが与えられたクラスの直接のインスタンスである場合、検査にパスしたことになります。
...Proc#call した
結果を使用します。
@raise MiniTest::Assertion 与えられたオブジェクトが与えられたクラスの直接のインスタンスでない
場合に発生します。
@see Module#===, MiniTest::Assertions#assert_kind_of... -
WEBrick
:: HTTPAuth :: Authenticator :: ResponseInfoField -> String (21400.0) -
レスポンスインフォフィールドのキーの名前です。
レスポンスインフォフィールドのキーの名前です。 -
FileUtils
. options _ of(mid) -> Array (21307.0) -
与えられたメソッド名で使用可能なオプション名の配列を返します。
...与えられたメソッド名で使用可能なオプション名の配列を返します。
@param mid メソッド名を指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options_of(:rm) # => ["noop", "verbose", "force"]
//}... -
OpenSSL
:: OCSP :: REVOKED _ STATUS _ CESSATIONOFOPERATION -> Integer (21300.0) -
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、 証明書の運用を止めたことを意味します。
...OpenSSL::OCSP::BasicResponse#status の失効理由コードで、
証明書の運用を止めたことを意味します。
詳しくは 3280 や X.509 を参照してください。... -
Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (18400.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...わりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には
//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1......rix[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}
@param row 行
@param column 列
@raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrDimensionMi......smatch 行列が正方でない場合に発生します
@see Matrix#cofactor... -
Object
# instance _ of?(klass) -> bool (18331.0) -
オブジェクトがクラス klass の直接のインスタンスである時真を返します。
...。
obj.instance_of?(c) が成立する時には、常に obj.kind_of?(c) も成立します。
@param klass Classかそのサブクラスのインスタンスです。
//emlist[][ruby]{
class C < Object
end
class S < C
end
obj = S.new
p obj.instance_of?(S) # true
p obj.instance_of?(C)......# false
//}
@see Object#kind_of?,Object#class... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (18314.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...み込む必要があるため、
irbのようなファイルを介さない対話的環境では動作しません。
@param proc Procもしくはメソッドオブジェクトを指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけら......@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR であるようなノードに置き換えてツリーを生成します。
//emlist[][ruby]{
pp R......byVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# tbl: []
# args: nil
# body:
# (OPCALL@2:39-2:44 (LIT@2:39-2:40 1) :+
# (LIST@2:43-2:44 (LIT@2:43-2:44 2) nil)))
def hello
puts "hello, world"
end
pp RubyVM::AbstractSyntaxTree.of(method(:hello))
# => (SC... -
Object
# must _ be _ instance _ of(klass) -> true (18307.0) -
自身が与えられたクラスのインスタンスである場合、検査にパスしたことになります。
...ンスである場合、検査にパスしたことになります。
@param klass 任意のクラスを指定します。
@raise MiniTest::Assertion 自身が与えられたクラスの直接のインスタンスでない場合に発生します。
@see MiniTest::Assertions#assert_instance_of... -
VALUE rb
_ obj _ is _ instance _ of(VALUE obj , VALUE klass) (18300.0) -
obj がクラス klass のインスタンスならば真。
obj がクラス klass のインスタンスならば真。 -
MiniTest
:: Assertions # assert _ kind _ of(klass , object , message) -> true (18213.0) -
与えられたオブジェクトが与えられたクラスまたはそのサブクラスのインスタンス である場合、検査にパスしたことになります。
...結果を使用します。
@raise MiniTest::Assertion 与えられたオブジェクトが与えられたクラスまたはそのサブクラスの
インスタンスではない場合に発生します。
@see Object#kind_of?, MiniTest::Assertions#assert_instance_of... -
Socket
:: Constants :: SO _ OOBINLINE -> Integer (15316.0) -
Leave received out-of-band data in-line。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Leave received out-of-band data in-line。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET... -
Matrix
# laplace _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (15300.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...わりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には
//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1......rix[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}
@param row 行
@param column 列
@raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrDimensionMi......smatch 行列が正方でない場合に発生します
@see Matrix#cofactor...