別のキーワード
ライブラリ
- English (1)
- ビルトイン (69)
- benchmark (4)
-
cgi
/ core (31) -
cgi
/ html (47) -
cgi
/ session (1) - csv (9)
- dbm (1)
-
drb
/ acl (1) - e2mmap (3)
- erb (1)
- etc (4)
- fiddle (4)
- fileutils (1)
- forwardable (1)
- gdbm (1)
- getoptlong (1)
-
io
/ nonblock (1) - irb (1)
- json (4)
-
json
/ add / exception (1) -
json
/ add / rational (1) - logger (1)
- matrix (37)
- mkmf (2)
-
net
/ http (5) -
net
/ imap (6) -
net
/ pop (1) -
net
/ smtp (1) - nkf (2)
- objspace (4)
- open-uri (4)
- openssl (21)
- optparse (38)
- pathname (1)
- prime (4)
- pstore (2)
- psych (8)
- rake (9)
-
rake
/ packagetask (2) -
rake
/ rdoctask (1) -
rake
/ testtask (2) - rdoc (1)
-
rdoc
/ context (4) -
rdoc
/ generator / ri (1) - readline (3)
- rexml (1)
-
rexml
/ document (19) -
rexml
/ parsers / pullparser (1) -
rexml
/ sax2listener (1) -
rexml
/ streamlistener (3) - ripper (1)
-
ripper
/ lexer (1) - rubygems (3)
-
rubygems
/ command (2) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ platform (1) -
rubygems
/ security (2) -
rubygems
/ specification (49) -
rubygems
/ user _ interaction (8) -
rubygems
/ version (2) -
shell
/ process-controller (2) - socket (8)
- stringio (2)
- strscan (2)
-
syslog
/ logger (1) - time (2)
- tracer (1)
- uri (1)
-
webrick
/ httpresponse (1) -
webrick
/ httpservlet / abstract (3) -
webrick
/ httpversion (1) -
win32
/ registry (16) - win32ole (1)
-
yaml
/ dbm (1) - zlib (13)
クラス
- ACL (1)
-
ARGF
. class (2) - Array (1)
- BasicSocket (2)
-
Benchmark
:: Tms (1) - CGI (1)
-
CGI
:: Session (1) - CSV (5)
-
CSV
:: Table (2) - DBM (1)
- ERB (1)
-
Encoding
:: InvalidByteSequenceError (1) -
Encoding
:: UndefinedConversionError (2) - Exception (7)
-
Fiddle
:: Function (4) - GDBM (1)
-
Gem
:: Command (2) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Platform (1) -
Gem
:: Security :: Policy (1) -
Gem
:: Specification (49) -
Gem
:: StreamUI (7) -
Gem
:: Version (2) - GetoptLong (1)
- IO (7)
- Logger (1)
- Matrix (12)
-
Matrix
:: EigenvalueDecomposition (10) -
Matrix
:: LUPDecomposition (10) - Method (1)
-
Net
:: HTTP (4) -
Net
:: HTTPResponse (1) -
Net
:: IMAP :: BodyTypeBasic (1) -
Net
:: IMAP :: BodyTypeMessage (1) -
Net
:: IMAP :: BodyTypeText (1) -
Net
:: IMAP :: ContentDisposition (2) -
Net
:: IMAP :: ContinuationRequest (1) -
Net
:: POP3 (1) -
Net
:: SMTP (1) - Object (4)
-
OpenSSL
:: Config (5) -
OpenSSL
:: SSL :: SSLContext (1) -
OpenSSL
:: SSL :: SSLSocket (1) -
OpenSSL
:: SSL :: Session (4) -
OpenSSL
:: X509 :: Extension (5) -
OpenSSL
:: X509 :: ExtensionFactory (1) - OptionParser (28)
-
OptionParser
:: ParseError (6) - PStore (2)
- Pathname (1)
-
Prime
:: TrialDivisionGenerator (3) - Proc (1)
-
Psych
:: Nodes :: Node (2) -
Psych
:: Visitors :: YAMLTree (1) -
RDoc
:: Context :: Section (4) -
RDoc
:: Generator :: RI (1) -
RDoc
:: Options (20) -
REXML
:: Declaration (1) -
REXML
:: Document (1) -
REXML
:: Element (1) -
REXML
:: Formatters :: Transitive (1) -
REXML
:: Instruction (8) -
REXML
:: NotationDecl (4) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullEvent (1) -
REXML
:: XMLDecl (2) -
Rake
:: Application (4) -
Rake
:: InvocationChain (1) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Rake
:: PackageTask (2) -
Rake
:: RDocTask (1) -
Rake
:: Task (1) -
Rake
:: TestTask (2) - Rational (4)
- Regexp (2)
- Ripper (2)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (18) -
Shell
:: ProcessController (2) - SignalException (1)
- Socket (2)
-
Socket
:: Option (2) - String (9)
- StringIO (2)
- StringScanner (2)
-
Syslog
:: Logger (1) - Thread (2)
-
Thread
:: Backtrace :: Location (7) - Time (2)
- TracePoint (1)
- Tracer (1)
- UDPSocket (1)
-
URI
:: LDAP (1) - UnboundMethod (1)
-
WEBrick
:: HTTPResponse (1) -
WEBrick
:: HTTPServlet :: AbstractServlet (3) -
WEBrick
:: HTTPVersion (1) - WIN32OLE (1)
-
Win32
:: Registry (9) -
YAML
:: DBM (1) -
Zlib
:: Deflate (3) -
Zlib
:: GzipWriter (5) -
Zlib
:: Inflate (1)
モジュール
- Benchmark (3)
-
CGI
:: HtmlExtension (47) -
CGI
:: QueryExtension (30) - Etc (4)
- Exception2MessageMapper (2)
- FileUtils (1)
- Forwardable (1)
- Gem (3)
-
Gem
:: InstallUpdateOptions (1) -
Gem
:: Security (1) -
Gem
:: UserInteraction (1) - IRB (1)
- JSON (4)
- Kernel (7)
- NKF (2)
- ObjectSpace (4)
- OpenSSL (3)
-
OpenSSL
:: Buffering (1) - OpenURI (1)
-
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (4) - Psych (3)
- RDoc (1)
-
REXML
:: SAX2Listener (1) -
REXML
:: StreamListener (3) -
Rake
:: TaskManager (1) - Readline (3)
-
Socket
:: Constants (1) -
Win32
:: Registry :: Constants (7) - Zlib (4)
キーワード
-
$ ERROR _ POSITION (1) - == (1)
-
BENCHMARK
_ VERSION (1) - CAPTION (2)
-
CS
_ POSIX _ V6 _ WIDTH _ RESTRICTED _ ENVS (1) -
CS
_ POSIX _ V7 _ WIDTH _ RESTRICTED _ ENVS (1) -
DEFAULT
_ VERSION (1) - DEPRECATED (1)
- DESCRIPTION (1)
- EigenvalueDecomposition (1)
- ErrDimensionMismatch (1)
- ErrNotRegisteredException (1)
- ErrNotRegular (1)
- ErrOperationNotDefined (1)
-
FORWARDABLE
_ VERSION (1) -
INSTRUCTION
_ NAMES (1) - Instruction (1)
- InstructionSequence (1)
-
LIBYAML
_ VERSION (1) - LUPDecomposition (1)
- Location (1)
-
NKF
_ VERSION (1) -
OPENSSL
_ LIBRARY _ VERSION (1) -
OPENSSL
_ VERSION (1) -
REG
_ LEGAL _ OPTION (1) -
REG
_ OPTION _ BACKUP _ RESTORE (1) -
REG
_ OPTION _ CREATE _ LINK (1) -
REG
_ OPTION _ NON _ VOLATILE (1) -
REG
_ OPTION _ OPEN _ LINK (1) -
REG
_ OPTION _ RESERVED (1) -
REG
_ OPTION _ VOLATILE (1) -
RUBY
_ DESCRIPTION (1) -
RUBY
_ VERSION (1) - Revision (2)
- RubyGemsPackageVersion (1)
- RubyGemsVersion (1)
-
SC
_ JOB _ CONTROL (1) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (1) -
SO
_ SECURITY _ ENCRYPTION _ TRANSPORT (2) - SPECIAL (1)
- TrialDivisionGenerator (1)
- VERSION (15)
- Version (2)
-
ZLIB
_ VERSION (1) -
_ dump (1) -
_ load (1) - a (2)
-
absolute
_ path (2) - accept (3)
-
accept
_ charset (1) -
accept
_ encoding (1) -
accept
_ language (1) -
add
_ trusted _ cert (1) -
add
_ value (1) - alert (1)
-
alert
_ error (1) -
alert
_ warning (1) -
allocation
_ sourcefile (1) -
array
_ attribute (1) -
array
_ attributes (1) - ask (2)
-
ask
_ yes _ no (1) - attribute (1)
-
attribute
_ alias _ singular (1) -
attribute
_ defaults (1) -
attribute
_ names (1) - attributes (1)
-
auth
_ type (1) - autorequire (1)
- backtrace (1)
-
backtrace
_ locations (3) - base (1)
-
base
_ label (2) - benchmark (1)
- bindir (1)
- binread (2)
- blockquote (2)
- body (1)
-
cache
_ control (1) - call (1)
-
caller
_ locations (2) - charset (1)
- checkbox (2)
-
checkbox
_ group (2) -
choose
_ from _ list (1) - clone (1)
- cofactor (1)
-
cofactor
_ expansion (1) - comment (1)
- compile (2)
-
compile
_ file (1) -
compile
_ option (1) -
compile
_ option= (1) -
completion
_ append _ character (1) -
completion
_ append _ character= (1) - content (1)
- content= (1)
-
content
_ type (1) - create (3)
-
create
_ body (1) -
create
_ ext _ from _ string (1) - css (1)
- d (1)
- data (1)
-
default
_ argv (1) -
default
_ executable (1) - deflate (2)
- desc (1)
- description (5)
-
destination
_ encoding _ name (2) - det (1)
-
det
_ e (1) - determinant (1)
-
determinant
_ e (1) - disasm (2)
- disassemble (2)
- disposition (1)
-
do
_ OPTIONS (1) -
dsp
_ type (1) - dump (2)
- eigen (1)
- eigensystem (1)
-
eigenvalue
_ matrix (1) - eigenvalues (1)
-
eigenvector
_ matrix (1) -
eigenvector
_ matrix _ inv (1) - eigenvectors (1)
- email (1)
- encode (3)
- encode! (2)
- environment (1)
-
error
_ char (1) - eval (1)
- executable (1)
- executables (1)
- extensions (2)
-
extra
_ accessor _ flags (1) -
extra
_ accessors (1) -
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) -
file
_ field (2) -
file
_ name (1) - files (2)
-
filter
_ backtrace (1) -
first
_ lineno (1) - form (4)
- from (1)
-
full
_ gem _ path (1) -
full
_ name (1) -
gateway
_ interface (1) - generate (1)
-
generate
_ line (1) -
get
_ instance (1) -
get
_ one _ optional _ argument (1) -
get
_ option (1) -
get
_ path (1) -
get
_ value (1) - header (1)
- help (1)
- hidden (2)
- homepage (1)
- host (1)
- html (2)
-
http
_ version (1) - id (1)
-
image
_ format (1) - img (2)
-
in
_ transaction (1) - inspect (6)
-
install
_ update _ defaults _ str (1) -
installation
_ path (1) - instruction (1)
- instruction? (1)
- instructions (1)
- investigation (1)
-
is
_ version _ 1 _ 2? (1) - iso8601 (1)
- keys (1)
- l (1)
- label (2)
-
laplace
_ expansion (1) -
last
_ description (1) - lex (1)
-
lib
_ files (1) - lineno (1)
-
loaded
_ from (1) - lup (1)
-
lup
_ decomposition (1) -
main
_ page (1) -
mark
_ version (1) - markup (1)
-
marshal
_ version (1) - merge (1)
-
multipart
_ form (4) -
must
_ C _ version (1) - name (4)
- negotiate (1)
- new (11)
- next (1)
-
node
_ type (1) - nonblock (1)
- normalize (1)
-
normalize
_ yaml _ input (1) - notationdecl (1)
- of (1)
- oid (1)
-
op
_ dir (1) -
op
_ name (1) - open (7)
-
open
_ uri (1) -
option
_ string (1) - order (4)
- order! (4)
-
original
_ dir (1) -
original
_ name (1) -
original
_ platform (1) - p (1)
- param (1)
- parse (4)
- parse! (2)
-
parse
_ csv (1) - partition (1)
-
password
_ field (2) - path (2)
-
path
_ info (1) -
path
_ translated (1) - permutation? (1)
- permute (2)
- permute! (2)
- pivots (1)
- platform (1)
-
post
_ connection _ check (1) - pragma (1)
-
pretty
_ generate (1) -
pretty
_ unparse (1) -
processing
_ instruction (1) -
program
_ name (1) -
psych
_ to _ yaml (1) - ptr (1)
- public (1)
-
query
_ string (1) -
radio
_ group (2) -
raised
_ exception (1) - rakefile (1)
-
raw
_ data (1) -
rdoc
_ include (1) - read (1)
-
read
_ nonblock (4) - reason (1)
-
recvfrom
_ nonblock (2) - recvmsg (1)
- referer (1)
- release (1)
-
remote
_ addr (1) -
remote
_ host (1) -
remote
_ ident (1) -
remote
_ user (1) -
request
_ method (1) -
require
_ path (1) -
require
_ paths (1) -
required
_ attribute (1) -
required
_ attribute? (1) -
required
_ attributes (1) - reset (2)
- rewind (1)
- rmtree (1)
- rpartition (1)
-
ruby 1
. 6 feature (1) -
rubygems
_ version (1) -
script
_ name (1) -
scrolling
_ list (2) - section (1)
- sections (1)
- sendmsg (1)
- sequence (1)
-
server
_ name (1) -
server
_ protocol (1) -
server
_ software (1) -
session
_ id (1) -
session
_ id _ context (1) -
set
_ backtrace (2) -
set
_ dictionary (2) -
set
_ encoding (1) - sfork (1)
-
signing
_ key (1) - signm (1)
- singular? (1)
- solve (1)
-
source
_ location (3) -
ssl
_ version (1) -
static
_ path (1) - submit (2)
- succ (1)
- summary (1)
-
summary
_ indent (1) - system (1)
- target (1)
- target= (1)
- template (1)
-
template
_ dir (1) -
terminate
_ interaction (1) -
test
_ file (1) -
test
_ files (1) -
test
_ suite _ file (1) -
text
_ field (2) - textarea (2)
- title (2)
- title= (1)
-
to
_ a (5) -
to
_ ary (2) -
to
_ csv (2) -
to
_ der (2) -
to
_ json (2) -
to
_ pem (1) -
to
_ r (1) -
to
_ ruby (1) -
to
_ s (15) -
to
_ text (1) -
to
_ yaml (2) - trace (1)
-
trace
_ object _ allocations (1) -
trace
_ object _ allocations _ start (1) -
trace
_ object _ allocations _ stop (1) - transaction (1)
- truncate (1)
-
trusted
_ cert _ path (1) -
try
_ convert (1) -
try
_ link (2) - u (1)
-
user
_ agent (1) - v (1)
-
v
_ inv (1) - value (2)
- ver (1)
- verbose= (1)
- version (8)
- version= (1)
-
version
_ 1 _ 2 (1) -
version
_ 1 _ 2? (1) -
wait
_ all _ jobs _ execution (1) -
warn
_ unless _ e _ option (1) -
warning
_ unless _ e _ option (1) - webcvs (1)
- wrap (2)
- write (2)
-
write
_ nonblock (2) - xmldecl (1)
- xmlschema (1)
- yaml (1)
-
zlib
_ version (1) - 制御構造 (1)
検索結果
先頭5件
- Matrix
:: EigenvalueDecomposition # to _ ary -> [Matrix , Matrix , Matrix] - Matrix
:: LUPDecomposition # to _ a -> [Matrix , Matrix , Matrix] - Matrix
:: LUPDecomposition # to _ ary -> [Matrix , Matrix , Matrix] - RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - WEBrick
:: HTTPServlet :: AbstractServlet # do _ OPTIONS(request , response) -> ()
-
Matrix
:: EigenvalueDecomposition # to _ ary -> [Matrix , Matrix , Matrix] (27901.0) -
Matrix::EigenvalueDecomposition#v, Matrix::EigenvalueDecomposition#d, Matrix::EigenvalueDecomposition#v_inv をこの順に並べた配列を返します。
Matrix::EigenvalueDecomposition#v,
Matrix::EigenvalueDecomposition#d,
Matrix::EigenvalueDecomposition#v_inv
をこの順に並べた配列を返します。 -
Matrix
:: LUPDecomposition # to _ a -> [Matrix , Matrix , Matrix] (27901.0) -
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で 返します。
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で
返します。 -
Matrix
:: LUPDecomposition # to _ ary -> [Matrix , Matrix , Matrix] (27901.0) -
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で 返します。
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で
返します。 -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (27901.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
引数 body で指定した Proc、Method オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_binding@(irb)>
# method
> def ... -
WEBrick
:: HTTPServlet :: AbstractServlet # do _ OPTIONS(request , response) -> () (27901.0) -
自身の service メソッドから HTTP のリクエストに応じて 呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し なければいけません。返り値は特に規定されていません。
自身の service メソッドから HTTP のリクエストに応じて
呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し
なければいけません。返り値は特に規定されていません。
クライアントが使う可能性のある RFC で定義された HTTP のメソッドはすべて実装する必要があります。
クライアントからのリクエストに使われないと分かっているメソッドは実装しなくてもかまいません。
実装されていない HTTP メソッドであった場合、自身の service メソッドが
例外を発生させます。
このメソッドが呼ばれた時点では、クライアントからのリクエスト... -
Net
:: IMAP :: ContentDisposition # param -> { String => String } | nil (27601.0) -
Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。
Content-Disposition フィールドのパラメータをハッシュテーブルで
返します。
ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"
* "SIZE" -
Encoding
:: UndefinedConversionError # error _ char -> String (27301.0) -
エラーを発生させた1文字を文字列で返します。
エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//} -
Etc
:: CS _ POSIX _ V6 _ WIDTH _ RESTRICTED _ ENVS -> Integer (27301.0) -
Etc.#confstr の引数に指定します。
Etc.#confstr の引数に指定します。
詳細は confstr(3) を参照してください。 -
Etc
:: CS _ POSIX _ V7 _ WIDTH _ RESTRICTED _ ENVS -> Integer (27301.0) -
Etc.#confstr の引数に指定します。
Etc.#confstr の引数に指定します。
詳細は confstr(3) を参照してください。 -
Matrix
:: EigenvalueDecomposition # d -> Matrix (27301.0) -
固有値を対角成分に並べた行列を返します。
固有値を対角成分に並べた行列を返します。 -
Matrix
:: LUPDecomposition # l -> Matrix (27301.0) -
LUP分解の下半行列部分を返します。
LUP分解の下半行列部分を返します。 -
Matrix
:: LUPDecomposition # p -> Matrix (27301.0) -
LUP分解の置換行列部分を返します。
LUP分解の置換行列部分を返します。 -
Matrix
:: LUPDecomposition # solve(b) -> Vector | Matrix (27301.0) -
self が正方行列 A の LUP 分解の時、一次方程式 Ax = b の解を返します。 b には Vector, Matrix, 数値の配列を指定出来ます。
self が正方行列 A の LUP 分解の時、一次方程式 Ax = b の解を返します。
b には Vector, Matrix, 数値の配列を指定出来ます。
それぞれベクトルのサイズ、行列の行数、配列のサイズが A の列数と一致していなければなりません。
返り値は b が行列なら行列、それ以外はベクトルになります。
@param b 一次方程式の定数項を指定します。
//emlist[][ruby]{
require 'matrix'
lup = Matrix[[2, 1], [1, 2]].lup
lup.solve([1, -1]) #=> ... -
Matrix
:: LUPDecomposition # u -> Matrix (27301.0) -
LUP分解の上半行列部分を返します。
LUP分解の上半行列部分を返します。 -
Net
:: IMAP :: ContentDisposition # dsp _ type -> String (27301.0) -
Content-Disposition フィールドのタイプを文字列で返します。
Content-Disposition フィールドのタイプを文字列で返します。
"INLINE", "ATTACHMENT" などの文字列を返します。
詳しくは 2183 などを見てください。 -
Net
:: IMAP :: ContinuationRequest # raw _ data -> String (27301.0) -
レスポンス文字列を返します。
レスポンス文字列を返します。 -
RDoc
:: Context :: Section # comment -> String | nil (27301.0) -
section のコメントを返します。
section のコメントを返します。 -
RDoc
:: Context :: Section # inspect -> String (27301.0) -
自身の情報を人間に読みやすい文字列にして返します。
自身の情報を人間に読みやすい文字列にして返します。 -
RDoc
:: Context :: Section # sequence -> String (27301.0) -
section のシーケンス番号を文字列で返します。
section のシーケンス番号を文字列で返します。
リンクを作成する時に使われます。 -
RDoc
:: Context :: Section # title -> String | nil (27301.0) -
section のタイトルを返します。
section のタイトルを返します。 -
REXML
:: Instruction # target -> String (27301.0) -
XML 処理命令のターゲットを返します。
XML 処理命令のターゲットを返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "t... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (27301.0) -
self が表す命令シーケンスの絶対パスを返します。
self が表す命令シーケンスの絶対パスを返します。
self を文字列から作成していた場合は nil を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.... -
RubyVM
:: InstructionSequence # base _ label -> String (27301.0) -
self が表す命令シーケンスの基本ラベルを返します。
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "h... -
RubyVM
:: InstructionSequence # disasm -> String (27301.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobje... -
RubyVM
:: InstructionSequence # disassemble -> String (27301.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobje... -
RubyVM
:: InstructionSequence # inspect -> String (27301.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path -
RubyVM
:: InstructionSequence # label -> String (27301.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: R... -
RubyVM
:: InstructionSequence # path -> String (27301.0) -
self が表す命令シーケンスの相対パスを返します。
self が表す命令シーケンスの相対パスを返します。
self の作成時に指定した文字列を返します。self を文字列から作成していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compi... -
RubyVM
:: InstructionSequence . disasm(body) -> String (27301.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main... -
RubyVM
:: InstructionSequence . disassemble(body) -> String (27301.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main... -
StringIO
# write _ nonblock(obj) -> Integer (27301.0) -
自身に obj を書き込みます。StringIO#write と同じです。
自身に obj を書き込みます。StringIO#write と同じです。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。 -
Thread
:: Backtrace :: Location # absolute _ path -> String (27301.0) -
self が表すフレームの絶対パスを返します。
self が表すフレームの絶対パスを返します。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.absolute_path
end
# => /path/to/foo.rb
# /path/to/foo.rb
# /path/to/foo.rb
//}
@see... -
Thread
:: Backtrace :: Location # base _ label -> String (27301.0) -
self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。
self が表すフレームの基本ラベルを返します。通常、
Thread::Backtrace::Location#label から修飾を取り除いたもので構成
されます。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.base_label
end
# => init... -
Thread
:: Backtrace :: Location # inspect -> String (27301.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文
字列に変換したオブジェクトを返します。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.inspect
end
# => "path/to/foo.rb:5:in ... -
Thread
:: Backtrace :: Location # label -> String (27301.0) -
self が表すフレームのラベルを返します。通常、メソッド名、クラス名、モ ジュール名などで構成されます。
self が表すフレームのラベルを返します。通常、メソッド名、クラス名、モ
ジュール名などで構成されます。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.label # => "a"
//}
@see Thread::Backtrace::Location#base_label -
Thread
:: Backtrace :: Location # path -> String (27301.0) -
self が表すフレームのファイル名を返します。
self が表すフレームのファイル名を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}
@see Thread::Backtrace::Location#absolute_path -
Thread
:: Backtrace :: Location # to _ s -> String (27301.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し
ます。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
# => path/to/foo.rb:5:in `initialize'
# path/to/foo... -
Matrix
:: EigenvalueDecomposition # eigenvalues -> [Float] (27001.0) -
固有値を配列で返します。
固有値を配列で返します。 -
Matrix
:: EigenvalueDecomposition # eigenvectors -> [Vector] (27001.0) -
右固有ベクトルを配列で返します。
右固有ベクトルを配列で返します。 -
Matrix
:: LUPDecomposition # det -> Numeric (27001.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant -
Matrix
:: LUPDecomposition # determinant -> Numeric (27001.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant -
Matrix
:: LUPDecomposition # pivots -> [Integer] (27001.0) -
ピボッティングを表す配列を返します。
ピボッティングを表す配列を返します。 -
Matrix
:: LUPDecomposition # singular? -> bool (27001.0) -
元の行列が正方で特異なら true を、正則なら false を返します。 LUP 分解の結果を利用して判定します。
元の行列が正方で特異なら true を、正則なら false を返します。
LUP 分解の結果を利用して判定します。
@see Matrix#singular? -
Prime
:: TrialDivisionGenerator # next -> Integer (27001.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。 -
Prime
:: TrialDivisionGenerator # rewind -> nil (27001.0) -
列挙状態を巻き戻します。
列挙状態を巻き戻します。 -
Prime
:: TrialDivisionGenerator # succ -> Integer (27001.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。 -
REXML
:: Instruction # ==(other) -> bool (27001.0) -
other と self が同じ 処理命令である場合に真を返します。
other と self が同じ 処理命令である場合に真を返します。
同じとは、 REXML::Instruction#target と REXML::Instruction#content
が一致することを意味します。
@param other 比較対象 -
REXML
:: Instruction # node _ type -> Symbol (27001.0) -
Symbol :processing_instruction を返します。
Symbol :processing_instruction を返します。 -
REXML
:: Instruction # target=(value) (27001.0) -
XML 処理命令のターゲットを value に変更します。
XML 処理命令のターゲットを value に変更します。
@param value 新たなターゲット(文字列) -
RubyVM
:: InstructionSequence # eval -> object (27001.0) -
self の命令シーケンスを評価してその結果を返します。
self の命令シーケンスを評価してその結果を返します。
RubyVM::InstructionSequence.compile("1 + 2").eval # => 3 -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (27001.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
self が表す命令シーケンスの 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2 -
RubyVM
:: InstructionSequence # to _ a -> Array (27001.0) -
self の情報を 14 要素の配列にして返します。
self の情報を 14 要素の配列にして返します。
命令シーケンスを以下の情報で表します。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す数値。常に 1。
: misc
以下の要素から構成される Hash オブジェクト。
:arg_size: メソッド、ブ... -
Thread
:: Backtrace :: Location # lineno -> Integer (27001.0) -
self が表すフレームの行番号を返します。
self が表すフレームの行番号を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.lineno # => 2
//} -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (19501.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="app... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") { . . . } -> String (19501.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="app... -
Fiddle
:: Function . new(ptr , args , ret _ type , abi=Fiddle :: Function :: DEFAULT , name: nil) -> Fiddle :: Function (19501.0) -
ptr (関数ポインタ)から Fiddle::Function オブジェクトを 生成します。
ptr (関数ポインタ)から Fiddle::Function オブジェクトを
生成します。
ptr には Fiddle::Handle から Fiddle::Handle#sym などで取りだした
関数ポインタ(を表す整数)、もしくは関数を指している
Fiddle::Pointer を渡します。
args、ret_type で関数の引数と返り値の型を指定します。これには以下の
定数が利用できます。「-TYPE_INT」 のように符号を反転させると unsigned を
意味します。
* Fiddle::TYPE_VOID
* Fiddle::TYPE_VOIDP
* Fidd... -
Gem
:: Security :: Policy . trusted _ cert _ path(cert , options) -> String (19201.0) -
与えられた証明書へのパスを返します。
与えられた証明書へのパスを返します。
@param cert 証明書オブジェクトを指定します。
@param options その他のオプションを指定します。 -
CGI
:: HtmlExtension # multipart _ form(action = nil , enctype = "multipart / form-data") -> String (18901.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param action action 属性の値を指定します。
@param enctype enctype 属性の値を指定します。
例:
multipart_form{ "string" }
# <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM> -
CGI
:: HtmlExtension # multipart _ form(action = nil , enctype = "multipart / form-data") { . . . } -> String (18901.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param action action 属性の値を指定します。
@param enctype enctype 属性の値を指定します。
例:
multipart_form{ "string" }
# <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM> -
Gem
:: Security . add _ trusted _ cert(cert , options = {}) -> nil (18901.0) -
信頼済み証明書リストに与えられた証明書を追加します。
信頼済み証明書リストに与えられた証明書を追加します。
Note: しばらくの間 OPT[:trust_dir] に保存されますが、今後変更される可能性があります。
@param cert 証明書を指定します。
@param options オプションを指定します。 -
Gem
:: Specification . _ load(str) -> Gem :: Specification (18901.0) -
マーシャルされたデータをロードするためのメソッドです。
マーシャルされたデータをロードするためのメソッドです。
@param str マーシャルされたデータを指定します。 -
Kernel
# try _ link(src , opt = "" , *options) -> bool (18901.0) -
C プログラムのソースコード src をコンパイル、リンクします。
C プログラムのソースコード src をコンパイル、リンクします。
このメソッドは $CFLAGS と $LDFLAGS の値もコンパイラまたはリ
ンカに渡します。
問題なくリンクできたら true を返します。
コンパイルとリンクに失敗したら false を返します。
@param src C プログラムのソースコードを指定します。
@param opt リンカにコマンド引数として渡す値を指定します。
例:
require 'mkmf'
if try_link("int main() { sin(0.0); }", '-lm')
$stderr.puts "si... -
Kernel
# try _ link(src , opt = "" , *options) { . . . } -> bool (18901.0) -
C プログラムのソースコード src をコンパイル、リンクします。
C プログラムのソースコード src をコンパイル、リンクします。
このメソッドは $CFLAGS と $LDFLAGS の値もコンパイラまたはリ
ンカに渡します。
問題なくリンクできたら true を返します。
コンパイルとリンクに失敗したら false を返します。
@param src C プログラムのソースコードを指定します。
@param opt リンカにコマンド引数として渡す値を指定します。
例:
require 'mkmf'
if try_link("int main() { sin(0.0); }", '-lm')
$stderr.puts "si... -
Rake
:: TaskManager # last _ description -> String (18901.0) -
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end
desc "test2"
task :test_rake_app2 do |task|
end
//} -
OpenSSL
:: Buffering # read _ nonblock(maxlen , buf) -> String (18673.0) -
通信路から maxlen バイトを上限としてデータを読み込み、 文字列として返します。
通信路から maxlen バイトを上限としてデータを読み込み、
文字列として返します。
即座に得られるデータが 1byte でも存在すればブロックしません。
内部バッファが空でない場合はバッファのデータを返します。
即座に得られるデータが存在しないときには例外が発生します。
例外が発生した場合、内部のソケットが利用可能になってから
再びこのメソッドを呼んでください。
基本的には IO#read_nonblock と同様です。しかし以下のような
違いもあります。
このメソッドはソケットが書き込み不可能(IO::WaitWritable)という理由で
例外を発生させる可能性があります。暗号... -
UDPSocket
# recvfrom _ nonblock(maxlen , flags=0) -> [String , Array] (18655.0) -
ソケットをノンブロッキングモードに設定した後、 recvfrom(2) でソケットからデータを受け取ります。
ソケットをノンブロッキングモードに設定した後、
recvfrom(2) でソケットからデータを受け取ります。
maxlen で受け取るデータの最大バイト数を指定します。
flags はフラグで、Socket::MSG_* の bitwise OR を渡します。
詳しくは recvfrom(2) を参照してください。
返り値はデータの文字列と送り元のアドレス情報の
2要素の配列となります。
recvfrom(2) がエラーになった場合、
Errno::EAGAIN, Errno::EINTR を含め例外 Errno::EXXX が発生します。
Errno::EWOULDBLOCK、Err... -
ARGF
. class # read _ nonblock(maxlen , outbuf = nil) -> String (18649.0) -
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。 詳しくは IO#read_nonblock を参照してください。
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。
詳しくは IO#read_nonblock を参照してください。
ARGF.class#read などとは違って複数ファイルを同時に読み込むことはありません。
@param maxlen 読み込む長さの上限を整数で指定します。
@param outbuf 読み込んだデータを格納する String オブジェクトを指定します。
@see ARGF.class#readpartial -
Shell
:: ProcessController # sfork(command) { . . . } -> [Integer , IO , IO] (18643.0) -
シンプルな fork です。
シンプルな fork です。
@param command コマンドを指定します。
@return [PID, 入力用 IO, 出力用 IO] からなる配列を返します。 -
Socket
# recvfrom _ nonblock(maxlen , flags=0) -> [String , Addrinfo] (18619.0) -
ソケットをノンブロッキングモードに設定した後、 recvfrom(2) を呼び出します。
ソケットをノンブロッキングモードに設定した後、
recvfrom(2) を呼び出します。
引数、返り値は Socket#recvfrom と同じです。
recvfrom(2) がエラーになった場合、
EAGAIN, EINTR を含め例外 Errno::EXXX が発生します。
Errno::EWOULDBLOCK、Errno::EAGAIN のような待ってからリトライすることが
可能であることを意味する例外には、IO::WaitReadable が extend
されています。
@param maxlen ソケットから受けとるデータの最大値
@param flags フラグ
@rai... -
Etc
:: SC _ JOB _ CONTROL -> Integer (18610.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。 -
CGI
:: HtmlExtension # checkbox(attributes) -> String (18601.0) -
タイプが checkbox である input 要素を生成します。
タイプが checkbox である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
checkbox("name" => "name", "value" => "value", "checked" => true)
# => "<INPUT checked name=\"name\" TYPE=\"checkbox\" value=\"value\">" -
CGI
:: HtmlExtension # checkbox _ group(attributes) -> String (18601.0) -
タイプが checkbox である input 要素のグループを生成します。
タイプが checkbox である input 要素のグループを生成します。
生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。
@param attributes 属性をハッシュで指定します。
例:
checkbox_group({ "NAME" => "name",
"VALUES" => ["foo", "bar", "baz"] })
checkbox_group({ "NAME" => "name",
"VALUES"... -
CGI
:: HtmlExtension # file _ field(attributes) -> String (18601.0) -
タイプが file である input 要素を生成します。
タイプが file である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
file_field({ "NAME" => "name", "SIZE" => 40 })
# <INPUT TYPE="file" NAME="name" SIZE="40"> -
CGI
:: HtmlExtension # form(attributes) -> String (18601.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
@see CGI::HtmlExtension#multipart_form -
CGI
:: HtmlExtension # form(attributes) { . . . } -> String (18601.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
@see CGI::HtmlExtension#multipart_form -
CGI
:: HtmlExtension # hidden(attributes) -> String (18601.0) -
タイプが hidden である input 要素を生成します。
タイプが hidden である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
hidden({ "NAME" => "name", "VALUE" => "reset", "ID" => "foo" })
# <INPUT TYPE="hidden" NAME="name" VALUE="value" ID="foo"> -
CGI
:: HtmlExtension # html(attributes = {}) -> String (18601.0) -
トップレベルの html 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
トップレベルの html 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
擬似属性の "PRETTY" に文字列を与えるとその文字列でインデントした HTML を生成します。
擬似属性の "DOCTYPE" には DOCTYPE 宣言として使用する文字列を与えることができます。
例:
html{ "string" }
# <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2... -
CGI
:: HtmlExtension # html(attributes = {}) { . . . } -> String (18601.0) -
トップレベルの html 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
トップレベルの html 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
擬似属性の "PRETTY" に文字列を与えるとその文字列でインデントした HTML を生成します。
擬似属性の "DOCTYPE" には DOCTYPE 宣言として使用する文字列を与えることができます。
例:
html{ "string" }
# <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2... -
CGI
:: HtmlExtension # img(attributes) -> String (18601.0) -
img 要素を生成します。
img 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
img({ "SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50 })
# <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50"> -
CGI
:: HtmlExtension # multipart _ form(attributes) -> String (18601.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
multipart_form("url"){ "string" }
# <FORM METHOD="post" ACTION="url" ENCTYPE="multipart/form-data">string</FORM> -
CGI
:: HtmlExtension # multipart _ form(attributes) { . . . } -> String (18601.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
multipart_form("url"){ "string" }
# <FORM METHOD="post" ACTION="url" ENCTYPE="multipart/form-data">string</FORM> -
CGI
:: HtmlExtension # password _ field(attributes) -> String (18601.0) -
タイプが password である input 要素を生成します。
タイプが password である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
password_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="password" NAME="name" VALUE="value"> -
CGI
:: HtmlExtension # popup _ menu(attributes) -> String (18601.0) -
select 要素を生成します。
select 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
popup_menu({"NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })
# <SELECT NAME="name" MULTIPLE SIZE="2">
# <OPTION VALUE="1">Foo</OPTION>
... -
CGI
:: HtmlExtension # reset(attributes) -> String (18601.0) -
タイプが reset である input 要素を生成します。
タイプが reset である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
reset({ "VALUE" => "reset", "ID" => "foo" })
# <INPUT TYPE="reset" VALUE="reset" ID="foo"> -
CGI
:: HtmlExtension # scrolling _ list(attributes) -> String (18601.0) -
select 要素を生成します。
select 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
popup_menu({"NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })
# <SELECT NAME="name" MULTIPLE SIZE="2">
# <OPTION VALUE="1">Foo</OPTION>
... -
CGI
:: HtmlExtension # submit(attributes) -> String (18601.0) -
タイプが submit である input 要素を生成します。
タイプが submit である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
submit({ "VALUE" => "ok", "NAME" => "button1", "ID" => "foo" })
# <INPUT TYPE="submit" VALUE="ok" NAME="button1" ID="foo"> -
CGI
:: HtmlExtension # text _ field(attributes) -> String (18601.0) -
タイプが text である input 要素を生成します。
タイプが text である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
text_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="text" NAME="name" VALUE="value"> -
CGI
:: HtmlExtension # textarea(attributes) -> String (18601.0) -
textarea 要素を生成します。
textarea 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
textarea("name", 40, 5)
# = textarea({ "NAME" => "name", "COLS" => 40, "ROWS" => 5 }) -
CGI
:: QueryExtension # create _ body(is _ large) -> StringIO | Tempfile (18601.0) -
-
OpenSSL
:: X509 :: Extension # to _ a -> [String , String , bool] (18601.0) -
拡張領域の内容を、[識別子(extnID), 値(extnValue), 重要度(critical)] という 形で返します。
拡張領域の内容を、[識別子(extnID), 値(extnValue), 重要度(critical)] という
形で返します。 -
RDoc
:: Options :: DEPRECATED -> {String -> String} (18601.0) -
非推奨のオプションの一覧を返します。
非推奨のオプションの一覧を返します。 -
OptionParser
. accept(klass , pat = / . * / ) {|str| . . . } -> () (18373.0) -
オプションの引数を文字列から Ruby のオブジェクトに変換するための ブロックを登録します。すべての OptionParser インスタンスに共通です。
オプションの引数を文字列から Ruby のオブジェクトに変換するための
ブロックを登録します。すべての OptionParser インスタンスに共通です。
ブロックには、文字列として与えられるオプションの引数から klass のインスタンスを生成して返すものを指定します。
OptionParser#on で klass を指定した場合、
コマンドラインのオプションに与えられた引数は、この accept で登録したブロックで
klass のインスタンスに変換されてから、OptionParser#on メソッドで登録したブロックに渡されます。
//emlist[][ruby]{
requi... -
OptionParser
# parse!(argv = self . default _ argv) -> [String] (18355.0) -
与えられた argv をパースします。
与えられた argv をパースします。
OptionParser#permute! と同様に argv を破壊的にパースします。
環境変数に POSIXLY_CORRECT が設定されている場合は、
OptionParser#order! と同様に振舞います。
@param argv パースしたい引数を文字列の配列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
... -
OptionParser
# parse(*args) -> [String] (18355.0) -
与えられた argv をパースします。 argv からオプションを取り除いたものを返します。
与えられた argv をパースします。
argv からオプションを取り除いたものを返します。
OptionParser#permute と同様に振舞います。しかし、
環境変数に POSIXLY_CORRECT が設定されている場合は、
OptionParser#order と同様に振舞います。
@param argv パースしたい引数を文字列の配列で指定します。
@param args パースしたい引数を順に文字列として与えます。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
... -
OptionParser
# parse(argv) -> [String] (18355.0) -
与えられた argv をパースします。 argv からオプションを取り除いたものを返します。
与えられた argv をパースします。
argv からオプションを取り除いたものを返します。
OptionParser#permute と同様に振舞います。しかし、
環境変数に POSIXLY_CORRECT が設定されている場合は、
OptionParser#order と同様に振舞います。
@param argv パースしたい引数を文字列の配列で指定します。
@param args パースしたい引数を順に文字列として与えます。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
... -
OptionParser
# summary _ indent -> String (18355.0) -
サマリを表示する時のインデントを文字列で返します。
サマリを表示する時のインデントを文字列で返します。
@return サマリを表示する時のインデントを文字列で返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_indent # => " "
opts.summarize
# => [" -i,... -
OptionParser
# to _ a -> [String] (18355.0) -
サマリの各行を要素とした配列を返します。
サマリの各行を要素とした配列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n", " -h, --help\n"]
//} -
OptionParser
# order!(argv = self . default _ argv) -> [String] (18337.0) -
与えられた argv を順番に破壊的にパースします。 argv からオプションがすべて取り除かれます。 argv を返します。
与えられた argv を順番に破壊的にパースします。
argv からオプションがすべて取り除かれます。
argv を返します。
オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。
ブロックが与えられている場合は、パースを中断せずに
引数をブロックに渡してブロックを評価し、パースを継続します。argv を返します。
下の例で言うと、コマンドの引数 somefile よりも後ろにオプションを置くことができません。
-b もコマンドのオプションではない引数として扱われてしまいます。
@param argv パースしたい引数を文字列の配列で指定... -
OptionParser
# order!(argv = self . default _ argv) {|s| . . . } -> [String] (18337.0) -
与えられた argv を順番に破壊的にパースします。 argv からオプションがすべて取り除かれます。 argv を返します。
与えられた argv を順番に破壊的にパースします。
argv からオプションがすべて取り除かれます。
argv を返します。
オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。
ブロックが与えられている場合は、パースを中断せずに
引数をブロックに渡してブロックを評価し、パースを継続します。argv を返します。
下の例で言うと、コマンドの引数 somefile よりも後ろにオプションを置くことができません。
-b もコマンドのオプションではない引数として扱われてしまいます。
@param argv パースしたい引数を文字列の配列で指定... -
OptionParser
# order(*args) -> [String] (18337.0) -
与えられた argv を順番にパースします。 オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。 argv からオプションを取り除いたものを返します。
与えられた argv を順番にパースします。
オプションではないコマンドの引数(下の例で言うと somefile)に出会うと、パースを中断します。
argv からオプションを取り除いたものを返します。
ブロックが与えられている場合は、パースを中断せずに引数をブロックに渡してブロックを評価し、
パースを継続します。argv を返します。
下の例で言うと、コマンドの引数 somefile よりも後ろにオプションを置くことができま
せん。-b もコマンドのオプションではない引数として扱われてしまいます。
@param argv パースしたい引数を文字列の配列で指定します。
@param a...