別のキーワード
種類
ライブラリ
- English (1)
- ビルトイン (115)
- benchmark (4)
-
cgi
/ core (31) -
cgi
/ html (47) -
cgi
/ session (1) - csv (11)
- dbm (1)
-
drb
/ acl (1) - e2mmap (3)
- erb (1)
- etc (20)
- fiddle (5)
- fileutils (2)
- forwardable (1)
- gdbm (1)
- getoptlong (1)
-
io
/ console (3) -
io
/ nonblock (1) - irb (1)
-
irb
/ input-method (3) - json (4)
-
json
/ add / exception (1) -
json
/ add / rational (1) - logger (1)
- matrix (37)
- mkmf (2)
-
net
/ http (7) -
net
/ imap (6) -
net
/ pop (7) -
net
/ smtp (1) - nkf (2)
- objspace (4)
- open-uri (4)
- openssl (31)
- optparse (38)
- pathname (5)
- prime (4)
- pstore (2)
- psych (13)
- 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 (25) -
rexml
/ parsers / pullparser (2) -
rexml
/ parsers / streamparser (1) -
rexml
/ parsers / ultralightparser (1) -
rexml
/ sax2listener (1) -
rexml
/ streamlistener (3) - ripper (1)
-
ripper
/ lexer (3) - rubygems (3)
-
rubygems
/ command (2) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ package / tar _ header (1) -
rubygems
/ package / tar _ input (1) -
rubygems
/ package / tar _ writer (6) -
rubygems
/ platform (1) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ security (2) -
rubygems
/ specification (49) -
rubygems
/ user _ interaction (11) -
rubygems
/ version (2) -
shell
/ process-controller (2) - socket (8)
- stringio (87)
- strscan (2)
-
syslog
/ logger (1) - time (2)
- tracer (2)
- uri (1)
-
webrick
/ httpresponse (1) -
webrick
/ httpservlet / abstract (3) -
webrick
/ httpversion (1) -
win32
/ registry (16) - win32ole (1)
-
yaml
/ dbm (1) - zlib (22)
クラス
- ACL (1)
-
ARGF
. class (8) - Array (2)
- BasicSocket (2)
-
Benchmark
:: Tms (1) - CGI (1)
-
CGI
:: Session (1) - CSV (7)
-
CSV
:: Table (2) - DBM (1)
- ERB (1)
-
Encoding
:: InvalidByteSequenceError (1) -
Encoding
:: UndefinedConversionError (2) - Exception (7)
-
Fiddle
:: Function (4) -
Fiddle
:: Pointer (1) - File (3)
- GDBM (1)
-
Gem
:: Command (2) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Package :: TarHeader (1) -
Gem
:: Package :: TarInput (1) -
Gem
:: Package :: TarWriter :: BoundedStream (2) -
Gem
:: Package :: TarWriter :: RestrictedStream (2) -
Gem
:: Platform (1) -
Gem
:: RemoteFetcher (1) -
Gem
:: Security :: Policy (1) -
Gem
:: Specification (49) -
Gem
:: StreamUI (10) -
Gem
:: Version (2) - GetoptLong (1)
- IO (38)
-
IRB
:: StdioInputMethod (3) - Logger (1)
- Matrix (12)
-
Matrix
:: EigenvalueDecomposition (10) -
Matrix
:: LUPDecomposition (10) - Method (1)
-
Net
:: HTTP (4) -
Net
:: HTTPGenericRequest (2) -
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
:: POPMail (6) -
Net
:: SMTP (1) - Object (5)
-
OpenSSL
:: Config (5) -
OpenSSL
:: SSL :: SSLContext (1) -
OpenSSL
:: SSL :: SSLSocket (3) -
OpenSSL
:: SSL :: Session (4) -
OpenSSL
:: X509 :: Extension (5) -
OpenSSL
:: X509 :: ExtensionFactory (1) - OptionParser (28)
-
OptionParser
:: ParseError (6) - PStore (2)
- Pathname (5)
-
Prime
:: TrialDivisionGenerator (3) - Proc (1)
-
Psych
:: Nodes :: Node (2) -
Psych
:: Stream (2) -
Psych
:: Visitors :: YAMLTree (1) -
RDoc
:: Context :: Section (4) -
RDoc
:: Generator :: RI (1) -
RDoc
:: Options (20) -
REXML
:: Attribute (1) -
REXML
:: Declaration (1) -
REXML
:: DocType (1) -
REXML
:: Document (4) -
REXML
:: Element (2) -
REXML
:: Formatters :: Transitive (1) -
REXML
:: Instruction (8) -
REXML
:: NotationDecl (4) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullEvent (1) -
REXML
:: Parsers :: PullParser (1) -
REXML
:: Parsers :: StreamParser (1) -
REXML
:: Parsers :: UltraLightParser (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 (4)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (21) -
Shell
:: ProcessController (2) - SignalException (1)
- Socket (2)
-
Socket
:: Option (2) - String (11)
- StringIO (86)
- StringScanner (2)
-
Syslog
:: Logger (1) - Thread (2)
-
Thread
:: Backtrace :: Location (7) - Time (2)
- TracePoint (1)
- Tracer (2)
- 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
:: GzipFile (1) -
Zlib
:: GzipReader (4) -
Zlib
:: GzipWriter (9) -
Zlib
:: Inflate (1)
モジュール
- Benchmark (3)
-
CGI
:: HtmlExtension (47) -
CGI
:: QueryExtension (30) - Etc (20)
- Exception2MessageMapper (2)
- FileUtils (2)
- Forwardable (1)
- Gem (3)
-
Gem
:: InstallUpdateOptions (1) -
Gem
:: Security (1) -
Gem
:: UserInteraction (1) - IRB (1)
- JSON (4)
- Kernel (7)
- Marshal (1)
- NKF (2)
- ObjectSpace (4)
- OpenSSL (3)
-
OpenSSL
:: Buffering (9) - OpenURI (1)
-
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (4) - Psych (5)
- 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) - << (2)
- == (1)
-
BENCHMARK
_ VERSION (1) - BoundedStream (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) -
PC
_ CHOWN _ RESTRICTED (1) -
PC
_ NO _ TRUNC (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
_ ENGINE _ VERSION (1) -
RUBY
_ VERSION (1) - RestrictedStream (1)
- Revision (2)
- RubyGemsPackageVersion (1)
- RubyGemsVersion (1)
-
SC
_ 2 _ PBS _ TRACK (1) -
SC
_ BC _ STRING _ MAX (1) -
SC
_ JOB _ CONTROL (1) -
SC
_ STREAM _ MAX (1) -
SC
_ THREAD _ ATTR _ STACKADDR (1) -
SC
_ THREAD _ ATTR _ STACKSIZE (1) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (1) -
SC
_ TRACE (1) -
SC
_ TRACE _ EVENT _ FILTER (1) -
SC
_ TRACE _ EVENT _ NAME _ MAX (1) -
SC
_ TRACE _ INHERIT (1) -
SC
_ TRACE _ LOG (1) -
SC
_ TRACE _ NAME _ MAX (1) -
SC
_ TRACE _ SYS _ MAX (1) -
SC
_ TRACE _ USER _ EVENT _ MAX (1) -
SC
_ XOPEN _ STREAMS (1) -
SO
_ SECURITY _ ENCRYPTION _ TRANSPORT (2) - SPECIAL (1)
- Stream (1)
- StringIO (1)
- TrialDivisionGenerator (1)
- VERSION (15)
- Version (2)
- WaitReadable (1)
-
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) - all (2)
-
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)
- binmode (1)
- binread (2)
- binwrite (2)
- blockquote (2)
- body (1)
-
body
_ stream (1) -
body
_ stream= (1) - bytes (2)
-
cache
_ control (1) - call (1)
-
caller
_ locations (2) - chars (2)
- charset (1)
- checkbox (2)
-
checkbox
_ group (2) -
choose
_ from _ list (1) - chr (1)
- clone (1)
- close (1)
-
close
_ read (1) -
close
_ write (1) - closed? (1)
-
closed
_ read? (1) -
closed
_ write? (1) - codepoints (2)
- cofactor (1)
-
cofactor
_ expansion (1) - comment (1)
-
compare
_ stream (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) -
copy
_ stream (2) - 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 (3)
- each (2)
-
each
_ byte (2) -
each
_ char (2) -
each
_ codepoint (2) -
each
_ line (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)
- eof (1)
- eof? (1)
-
error
_ char (1) - errs (1)
- eval (1)
- executable (1)
- executables (1)
- extensions (2)
-
external
_ encoding (1) -
extra
_ accessor _ flags (1) -
extra
_ accessors (1) -
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) - fcntl (1)
-
file
_ field (2) -
file
_ name (1) - fileno (1)
- files (2)
-
filter
_ backtrace (1) - finish (1)
-
first
_ lineno (1) - flush (1)
- form (4)
- from (2)
- fsync (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) - getbyte (1)
- getc (3)
- getch (1)
- gets (10)
- 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) - ins (1)
- inspect (7)
-
install
_ update _ defaults _ str (1) -
installation
_ path (1) - instruction (1)
- instruction? (1)
- instructions (1)
-
internal
_ encoding (1) - investigation (1)
-
is
_ version _ 1 _ 2? (1) - isatty (1)
- iso8601 (1)
- keys (1)
- l (1)
- label (2)
-
laplace
_ expansion (1) -
last
_ description (1) - length (1)
- lex (1)
-
lib
_ files (1) - line (1)
- lineno (2)
- lineno= (1)
- lines (2)
-
load
_ from _ binary (1) -
load
_ from _ binary _ extra _ data (1) -
load
_ stream (2) -
loaded
_ from (1) - lup (1)
-
lup
_ decomposition (1) - mail (2)
-
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 (18)
- next (1)
-
node
_ type (1) - nonblock (1)
- normalize (1)
-
normalize
_ yaml _ input (1) - notationdecl (1)
- of (1)
- oid (1)
- on (3)
-
op
_ dir (1) -
op
_ name (1) - open (9)
-
open
_ uri (1) -
open
_ uri _ or _ path (1) -
option
_ string (1) - order (4)
- order! (4)
-
original
_ dir (1) -
original
_ name (1) -
original
_ platform (1) - outs (1)
- p (1)
- pack (1)
- param (1)
- parse (4)
- parse! (2)
-
parse
_ csv (1) -
parse
_ stream (1) - partition (1)
-
password
_ field (2) - path (4)
-
path
_ info (1) -
path
_ translated (1) - permutation? (1)
- permute (2)
- permute! (2)
- pid (1)
- pipe (2)
- pivots (1)
- platform (1)
- pop (2)
- pos (1)
- pos= (1)
-
post
_ connection _ check (1) - pragma (1)
-
pretty
_ generate (1) -
pretty
_ unparse (1) - print (3)
- printf (1)
-
processing
_ instruction (1) -
program
_ name (1) -
psych
_ to _ yaml (1) - ptr (1)
- public (1)
- putc (1)
- puts (2)
-
query
_ string (1) -
radio
_ group (2) -
raised
_ exception (1) - rakefile (1)
- raw (1)
- raw! (1)
-
raw
_ data (1) -
rdoc
_ include (1) - read (12)
-
read
_ nonblock (4) -
readable
_ atfer _ eof? (1) - readbyte (1)
- readchar (3)
- readline (6)
- readlines (9)
- readlink (1)
- readpartial (7)
- reason (1)
-
recvfrom
_ nonblock (2) - recvmsg (1)
- referer (1)
- release (1)
-
remote
_ addr (1) -
remote
_ host (1) -
remote
_ ident (1) -
remote
_ user (1) - reopen (2)
-
request
_ method (1) -
require
_ path (1) -
require
_ paths (1) -
required
_ attribute (1) -
required
_ attribute? (1) -
required
_ attributes (1) - reset (2)
- rewind (2)
- rmtree (1)
- rpartition (1)
-
ruby 1
. 6 feature (1) -
ruby 1
. 9 feature (1) -
rubygems
_ version (1) -
script
_ name (1) -
scrolling
_ list (2) - section (1)
- sections (1)
- seek (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 (5) - sfork (1)
-
signing
_ key (1) - signm (1)
- singular? (1)
- size (1)
- slice (1)
- solve (1)
-
source
_ location (3) -
ssl
_ version (1) -
static
_ path (1) - stdout (1)
- string (1)
- string= (1)
- stringio (1)
- submit (2)
- succ (1)
- summary (1)
-
summary
_ indent (1) - sync (1)
- sync= (1)
- sysread (5)
- system (1)
- syswrite (3)
- target (1)
- target= (1)
- tell (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
_ binary (1) -
to
_ csv (2) -
to
_ der (2) -
to
_ json (2) -
to
_ pem (1) -
to
_ ptr (1) -
to
_ r (1) -
to
_ ruby (1) -
to
_ s (15) -
to
_ text (1) -
to
_ yaml (2) - tokenize (1)
- trace (1)
-
trace
_ object _ allocations (1) -
trace
_ object _ allocations _ start (1) -
trace
_ object _ allocations _ stop (1) - transaction (1)
- truncate (4)
-
trusted
_ cert _ path (1) -
try
_ convert (1) -
try
_ link (2) - tty? (1)
- u (1)
- ungetbyte (1)
- ungetc (1)
- unpack (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 (15)
-
write
_ nonblock (2) - xmldecl (1)
- xmlschema (1)
- yaml (1)
-
zipped
_ stream (1) -
zlib
_ version (1) - 制御構造 (1)
検索結果
先頭5件
-
Net
:: POP3 :: Revision -> String (18601.0) -
ライブラリ(ファイル)のリビジョンです。 使わないでください。
ライブラリ(ファイル)のリビジョンです。
使わないでください。 -
Net
:: SMTP :: Revision -> String (18601.0) -
ファイルのリビジョンです。使わないでください。
ファイルのリビジョンです。使わないでください。 -
Object
:: RUBY _ DESCRIPTION -> String (18601.0) -
Ruby の詳細を表す文字列。
Ruby の詳細を表す文字列。
ruby -v で表示される内容が格納されています。 -
Object
:: RUBY _ ENGINE _ VERSION -> String (18601.0) -
Ruby処理系実装のバージョンを表す文字列。
Ruby処理系実装のバージョンを表す文字列。 -
Object
:: RUBY _ VERSION -> String (18601.0) -
Ruby のバージョンを表す文字列。
Ruby のバージョンを表す文字列。
Ruby のバージョンは、major.minor.teeny という形式です。 -
ObjectSpace
. # allocation _ sourcefile(object) -> String (18601.0) -
objectの元となったソースファイル名を返します。
objectの元となったソースファイル名を返します。
@param object 元となるソースファイル名を取得したいobjectを指定します。
@return objectの元となるソースファイル名を返します。存在しない場合はnilを返します。
//emlist[例:test.rbというファイルで下記のスクリプトを実行した場合][ruby]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourc... -
OpenSSL
:: Config # sections -> [String] (18601.0) -
オブジェクトに含まれる全てのセクション名の配列を返します。
オブジェクトに含まれる全てのセクション名の配列を返します。 -
OpenSSL
:: OPENSSL _ LIBRARY _ VERSION -> String (18601.0) -
実行時に使われている OpenSSL 本体のバージョンを表した文字列です。
実行時に使われている OpenSSL 本体のバージョンを表した文字列です。 -
OpenSSL
:: OPENSSL _ VERSION -> String (18601.0) -
ビルド時に使われた OpenSSL 本体のバージョンを表した文字列です。
ビルド時に使われた OpenSSL 本体のバージョンを表した文字列です。 -
OpenSSL
:: SSL :: SSLContext # session _ id _ context -> String | nil (18601.0) -
セッション ID コンテキスト文字列を返します。
セッション ID コンテキスト文字列を返します。
設定されていない場合は nil を返します。
@see OpenSSL::SSL::Session,
OpenSSL::SSL::SSLContext#session_id_context= -
OpenSSL
:: SSL :: SSLSocket # post _ connection _ check(hostname) -> true (18601.0) -
接続後検証を行います。
接続後検証を行います。
検証に成功した場合は true を返し、失敗した場合は例外
OpenSSL::SSL::SSLError を発生させます。
OpenSSL の API では、
OpenSSL::SSL::SSLSocket#connect や OpenSSL::SSL::SSLSocket#accept
での検証は実用的には不完全です。
CA が証明書に署名してそれが失効していないことしか確認しません。
実用上は証明書に記載されている事項を見て、接続先が妥当であるかを確認する
必要があります。通常は接続先ホストの FQDN と証明書に記載されている FQDN が
一致しているか... -
OpenSSL
:: VERSION -> String (18601.0) -
Ruby/OpenSSL のバージョンです。
Ruby/OpenSSL のバージョンです。 -
Proc
# source _ location -> [String , Integer] | nil (18601.0) -
ソースコードのファイル名と行番号を配列で返します。
ソースコードのファイル名と行番号を配列で返します。
その手続オブジェクトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(eval "proc {}").source_location # => ... -
Psych
:: LIBYAML _ VERSION -> String (18601.0) -
libyaml のバージョン。
libyaml のバージョン。 -
Psych
:: VERSION -> String (18601.0) -
Psych のバージョン。
Psych のバージョン。 -
RDoc
:: Generator :: RI :: DESCRIPTION -> String (18601.0) -
このジェネレータの説明を表す文字列です。
このジェネレータの説明を表す文字列です。 -
RDoc
:: VERSION -> String (18601.0) -
RDoc のバージョンを表す文字列を返します。
RDoc のバージョンを表す文字列を返します。 -
REXML
:: Document # version -> String (18601.0) -
XML 宣言に含まれている XML 文書のバージョンを返します。
XML 宣言に含まれている XML 文書のバージョンを返します。
文書が XML 宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.version # => "1.0"
//} -
REXML
:: Instruction # clone -> REXML :: Instruction (18601.0) -
self を複製します。
self を複製します。 -
REXML
:: Instruction . new(target , content = nil) -> REXML :: Instruction (18601.0) -
新たな Instruction オブジェクトを生成します。
新たな Instruction オブジェクトを生成します。
@param target ターゲット
@param content 内容 -
REXML
:: XMLDecl # version -> String (18601.0) -
XML文書のバージョンを文字列で返します。
XML文書のバージョンを文字列で返します。 -
REXML
:: XMLDecl :: DEFAULT _ VERSION -> String (18601.0) -
REXML::XMLDecl.new や REXML::XMLDecl.default で の使われるデフォルトのXMLバージョン。
REXML::XMLDecl.new や REXML::XMLDecl.default で
の使われるデフォルトのXMLバージョン。 -
Rake
:: PackageTask # version -> String (18601.0) -
作成するパッケージのバージョンを表す文字列を返します。
作成するパッケージのバージョンを表す文字列を返します。 -
Rake
:: PackageTask # version=(str) (18601.0) -
作成するパッケージのバージョンをセットします。
作成するパッケージのバージョンをセットします。
@param str バージョンを表す文字列を指定します。 -
Rake
:: Task # investigation -> String (18601.0) -
自身の詳しい内部状態を文字列化して返します。
自身の詳しい内部状態を文字列化して返します。
このメソッドはデバッグに便利です。 -
Rake
:: TestTask # options -> String (18601.0) -
テストスイートに渡すパラメータを返します。
テストスイートに渡すパラメータを返します。
コマンドラインで "TESTOPTS=options" が指定されると、この値を上書きします。
デフォルトは何も指定されていません。 -
Readline
. completion _ append _ character -> String (18601.0) -
ユーザの入力の補完が完了した場合に、最後に付加する文字を取得します。
ユーザの入力の補完が完了した場合に、最後に付加する文字を取得します。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.completion_append_character= -
Readline
. completion _ append _ character=(string) (18601.0) -
ユーザの入力の補完が完了した場合に、最後に付加する文字 string を指定します。
ユーザの入力の補完が完了した場合に、最後に付加する文字 string を指定します。
@param string 1文字を指定します。
@raise NotImplementedError サポートしていない環境で発生します。
半角スペース「" "」などの単語を区切る文字を指定すれば、
連続して入力する際に便利です。
require 'readline'
Readline.readline("> ", true)
Readline.completion_append_character = " "
> /var/li
ここで補完(TABキーを押す)を行う。
>... -
Readline
:: VERSION -> String (18601.0) -
Readlineモジュールが使用している GNU Readline や libedit のバージョンを 示す文字列です。
Readlineモジュールが使用している GNU Readline や libedit のバージョンを
示す文字列です。 -
Ripper
:: Version -> String (18601.0) -
ripper のバージョンを文字列で返します。
ripper のバージョンを文字列で返します。 -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (18601.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッドでこの文字列にアクセス出来ます。
注意: 変換後のバイナリデータはポータブルではありません。 to_binary で得たバイナリデータは他のマシンに移動できません。他... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (18601.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起こします。
他者により提供されたバイナリデータはロードすべきではありません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM:... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (18601.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 ... -
Syslog
:: Logger :: VERSION -> String (18601.0) -
Syslog::Logger のバージョンを表す文字列です。
Syslog::Logger のバージョンを表す文字列です。 -
URI
:: LDAP # extensions -> String (18601.0) -
自身の extensions を文字列で返します。
自身の extensions を文字列で返します。 -
UnboundMethod
# source _ location -> [String , Integer] | nil (18601.0) -
ソースコードのファイル名と行番号を配列で返します。
ソースコードのファイル名と行番号を配列で返します。
その手続オブジェクトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
require 'time'
Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
/... -
WIN32OLE
:: VERSION -> String (18601.0) -
Major.Minor.Patch形式のWIN32OLEのバージョン番号を示す文字列です。
Major.Minor.Patch形式のWIN32OLEのバージョン番号を示す文字列です。 -
YAML
:: DBM :: VERSION -> String (18601.0) -
yaml/dbm のバージョンを文字列で返します。
yaml/dbm のバージョンを文字列で返します。 -
Zlib
. # zlib _ version -> String (18601.0) -
zlib ライブラリのバージョンを表す文字列を返します。
zlib ライブラリのバージョンを表す文字列を返します。 -
Zlib
:: VERSION -> String (18601.0) -
Ruby/zlib のバージョンを表す文字列です。
Ruby/zlib のバージョンを表す文字列です。 -
Zlib
:: ZLIB _ VERSION -> String (18601.0) -
zlib.h のバージョンを表す文字列です。
zlib.h のバージョンを表す文字列です。 -
static void warn
_ unless _ e _ option(const char *str) (18601.0) -
ruby -e で与えたプログラムの評価中ではないなら、 警告メッセージ str を出力する。
ruby -e で与えたプログラムの評価中ではないなら、
警告メッセージ str を出力する。 -
static void warning
_ unless _ e _ option(const char *str) (18601.0) -
ruby -e で与えたプログラムの評価中ではなく、 しかも $VERBOSE が真ならば、警告メッセージ str を出力する。
ruby -e で与えたプログラムの評価中ではなく、
しかも $VERBOSE が真ならば、警告メッセージ str を出力する。 -
StringIO
# read -> String (18385.0) -
自身から len バイト読み込んで返します。len が省略された場合は、最後まで読み込んで返します。 詳しい仕様は IO#read を参照して下さい。
自身から len バイト読み込んで返します。len が省略された場合は、最後まで読み込んで返します。
詳しい仕様は IO#read を参照して下さい。
@param len 読み込みたい長さを整数で指定します。詳しい仕様は IO#read を参照して下さい。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length... -
StringIO
# read(len) -> String | nil (18385.0) -
自身から len バイト読み込んで返します。len が省略された場合は、最後まで読み込んで返します。 詳しい仕様は IO#read を参照して下さい。
自身から len バイト読み込んで返します。len が省略された場合は、最後まで読み込んで返します。
詳しい仕様は IO#read を参照して下さい。
@param len 読み込みたい長さを整数で指定します。詳しい仕様は IO#read を参照して下さい。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length... -
StringIO
# read(len , outbuf) -> String (18385.0) -
自身から len バイト読み込んで返します。len が省略された場合は、最後まで読み込んで返します。 詳しい仕様は IO#read を参照して下さい。
自身から len バイト読み込んで返します。len が省略された場合は、最後まで読み込んで返します。
詳しい仕様は IO#read を参照して下さい。
@param len 読み込みたい長さを整数で指定します。詳しい仕様は IO#read を参照して下さい。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length... -
StringIO
# seek(offset , whence = IO :: SEEK _ SET) -> 0 (18358.0) -
自身の pos を whence の位置から offset バイトだけ移動させます。
自身の pos を whence の位置から offset バイトだけ移動させます。
@param offset 移動させたいバイト数を整数で指定します。
@param whence 以下のいずれかの定数を指定します。
* IO::SEEK_SET: ファイルの先頭から (デフォルト)
* IO::SEEK_CUR: 現在のファイルポインタから
* IO::SEEK_END: ファイルの末尾から
@raise Errno::EINVAL offset + whence がマイナスである場合に発生します。
@raise ArgumentError whence が上の SEE... -
Net
:: HTTPGenericRequest # body _ stream -> object (18349.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
サーバに送るリクエストのエンティティボディを
IO オブジェクトなどのストリームで設定します。
f は read(size) メソッドが定義されている必要があります。
@param f エンティティボディのデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') d... -
Net
:: HTTPGenericRequest # body _ stream=(f) (18349.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
サーバに送るリクエストのエンティティボディを
IO オブジェクトなどのストリームで設定します。
f は read(size) メソッドが定義されている必要があります。
@param f エンティティボディのデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') d... -
REXML
:: Document . parse _ stream(source , listener) -> () (18337.0) -
XML文書を source から読み込み、パースした結果を listener にコールバックで伝えます。
XML文書を source から読み込み、パースした結果を
listener にコールバックで伝えます。
このメソッドは
Parsers::StreamParser.new( source, listener ).parse
と同じ挙動をします。
コールバックの詳しい仕組みなどについては REXML::Parsers::StreamParser
および REXML::StreamListener を参照してください。
@param source 入力(文字列、IO、IO互換オブジェクト(StringIOなど))
@param listener コールバックオブジェクト -
File
# truncate(length) -> 0 (18319.0) -
ファイルのサイズを最大 length バイトにします。
ファイルのサイズを最大 length バイトにします。
サイズの変更に成功すれば 0 を返します。失敗した場合は例外
Errno::EXXX が発生します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX サイズの変更に失敗した場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "1234567890")
File.open("testfile", "a") do |f|
f.truncate(5) # => 0
f.size # => 5... -
File
. truncate(path , length) -> 0 (18319.0) -
path で指定されたファイルのサイズを最大 length バイト にします。
path で指定されたファイルのサイズを最大 length バイト
にします。
サイズの変更に成功すれば 0 を返します。失敗した場合は例外
Errno::EXXX が発生します。
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@raise Errno::EXXX 失敗した場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "1234567890")
File.truncate("testfile", 5) # => 0
File.size("testfil... -
Psych
. load _ stream(yaml , filename=nil) -> [object] (18319.0) -
複数の YAML ドキュメントを含むデータを Ruby のオブジェクトに変換します。
複数の YAML ドキュメントを含むデータを
Ruby のオブジェクトに変換します。
ブロックなしの場合はオブジェクトの配列を返します。
//emlist[例][ruby]{
Psych.load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']
//}
ブロックありの場合は各オブジェクト引数としてそのブロックを呼び出します。
//emlist[例][ruby]{
list = []
Psych.load_stream("--- foo\n...\n--- bar\n...") do |ruby|
list << ru... -
Psych
. load _ stream(yaml , filename=nil) {|obj| . . . } -> () (18319.0) -
複数の YAML ドキュメントを含むデータを Ruby のオブジェクトに変換します。
複数の YAML ドキュメントを含むデータを
Ruby のオブジェクトに変換します。
ブロックなしの場合はオブジェクトの配列を返します。
//emlist[例][ruby]{
Psych.load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']
//}
ブロックありの場合は各オブジェクト引数としてそのブロックを呼び出します。
//emlist[例][ruby]{
list = []
Psych.load_stream("--- foo\n...\n--- bar\n...") do |ruby|
list << ru... -
StringIO
# readline(rs = $ / ) -> String (18319.0) -
自身から 1 行読み込んで、その文字列を返します。
自身から 1 行読み込んで、その文字列を返します。
文字列の終端に到達した時には、例外 EOFError を発生させます。
IO#readline と違い読み込んだ文字列を変数 $_ にセットしません。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@raise EOFError 文字列の終端に到達した時に発生します。
@raise IOError 自身が読み込み用にオープンされていなければ発生します。
//emlist[例][rub... -
StringIO
# readpartial -> String (18319.0) -
自身から len バイト読み込んで返します。 StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
自身から len バイト読み込んで返します。
StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length 長に拡... -
StringIO
# readpartial(len) -> String (18319.0) -
自身から len バイト読み込んで返します。 StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
自身から len バイト読み込んで返します。
StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length 長に拡... -
StringIO
# readpartial(len , outbuf) -> String (18319.0) -
自身から len バイト読み込んで返します。 StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
自身から len バイト読み込んで返します。
StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length 長に拡... -
StringIO
# sysread -> String (18319.0) -
自身から len バイト読み込んで返します。 StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
自身から len バイト読み込んで返します。
StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length 長に拡... -
StringIO
# sysread(len) -> String (18319.0) -
自身から len バイト読み込んで返します。 StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
自身から len バイト読み込んで返します。
StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length 長に拡... -
StringIO
# sysread(len , outbuf) -> String (18319.0) -
自身から len バイト読み込んで返します。 StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
自身から len バイト読み込んで返します。
StringIO#read と同じです。ただし、文字列の終端に達した場合、EOFError を投げます。
@param len 読み込みたい長さを整数で指定します。StringIO#read と同じです。
@param outbuf 読み込んだ文字列を出力するバッファを文字列で指定します。指定した文字列オブジェクトが
あらかじめ length 長の領域であれば、余計なメモリの割当てが行われません。指定した文字列の
長さが length と異なる場合、その文字列は一旦 length 長に拡... -
Etc
:: CS _ POSIX _ V6 _ WIDTH _ RESTRICTED _ ENVS -> Integer (18301.0) -
Etc.#confstr の引数に指定します。
Etc.#confstr の引数に指定します。
詳細は confstr(3) を参照してください。 -
Etc
:: CS _ POSIX _ V7 _ WIDTH _ RESTRICTED _ ENVS -> Integer (18301.0) -
Etc.#confstr の引数に指定します。
Etc.#confstr の引数に指定します。
詳細は confstr(3) を参照してください。 -
Matrix
:: EigenvalueDecomposition # d -> Matrix (18301.0) -
固有値を対角成分に並べた行列を返します。
固有値を対角成分に並べた行列を返します。 -
Matrix
:: LUPDecomposition # l -> Matrix (18301.0) -
LUP分解の下半行列部分を返します。
LUP分解の下半行列部分を返します。 -
Matrix
:: LUPDecomposition # p -> Matrix (18301.0) -
LUP分解の置換行列部分を返します。
LUP分解の置換行列部分を返します。 -
Matrix
:: LUPDecomposition # solve(b) -> Vector | Matrix (18301.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 (18301.0) -
LUP分解の上半行列部分を返します。
LUP分解の上半行列部分を返します。 -
REXML
:: Instruction # content -> String | nil (18301.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"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content... -
REXML
:: Instruction # target -> String (18301.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... -
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (18301.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (18301.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 (18301.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 (18301.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 (18301.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 (18301.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 (18301.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 (18301.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 (18301.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 (18301.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
# getc -> String | nil (18301.0) -
自身から 1 文字読み込んで、その文字を返します。 文字列の終端に到達した時には nil を返します。
自身から 1 文字読み込んで、その文字を返します。
文字列の終端に到達した時には nil を返します。
@raise IOError 自身が読み取り不可なら発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("ho")
a.getc # => "h"
a.getc # => "o"
a.getc # => nil
//} -
StringIO
# gets(rs = $ / ) -> String | nil (18301.0) -
自身から 1 行読み込んで、その文字列を返します。文字列の終端に到達した時には nil を返します。 $_ に読み込んだ行がセットされます。
自身から 1 行読み込んで、その文字列を返します。文字列の終端に到達した時には nil を返します。
$_ に読み込んだ行がセットされます。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@raise IOError 自身が読み込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge")
a.gets ... -
StringIO
# readchar -> String (18301.0) -
自身から 1 文字読み込んで、その文字に対応する String を返します。
自身から 1 文字読み込んで、その文字に対応する String を返します。
文字列の終端に到達した時には例外 EOFError を発生させます。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge")
a.readchar #=> "h"
//}
@raise EOFError EOFに達した時発生する -
StringIO
# readlines(rs = $ / ) -> [String] (18301.0) -
自身からデータを全て読み込んで、その各行を要素としてもつ配列を返します。 既に文字列の終端に達していれば空配列 [] を返します。
自身からデータを全て読み込んで、その各行を要素としてもつ配列を返します。
既に文字列の終端に達していれば空配列 [] を返します。
@param rs 行の区切りを文字列で指定します。rs に nil を指定すると行区切りなしとみなします。空文字列 "" を指定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@raise IOError 自身が読み込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge\nfoo\nbar\n")
a.readlines ... -
StringIO
# sync -> true (18301.0) -
何もせずに true を返します。
何もせずに true を返します。 -
StringIO
# ungetc(str _ or _ int) -> nil (18301.0) -
文字列か整数で指定された str_or_int を自身に書き戻します。 nil を返します。
文字列か整数で指定された str_or_int を自身に書き戻します。
nil を返します。
何回でも書き戻すことが可能です。
現在位置が自身のサイズよりも大きい場合は、自身をリサイズしてから、ch を書き戻します。
@param str_or_int 書き戻したい文字を文字列か整数で指定します。複数の文
字を書き戻す事もできます。
@raise IOError 自身が読み込み可能でない時に発生します。
//emlist[例][ruby]{
require "stringio"
s = StringIO.new("hoge")
s.pos = 1
s... -
Thread
:: Backtrace :: Location # absolute _ path -> String (18301.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 (18301.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 (18301.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 (18301.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 (18301.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 (18301.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... -
WEBrick
:: HTTPServlet :: AbstractServlet # do _ OPTIONS(request , response) -> () (18301.0) -
自身の service メソッドから HTTP のリクエストに応じて 呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し なければいけません。返り値は特に規定されていません。
自身の service メソッドから HTTP のリクエストに応じて
呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し
なければいけません。返り値は特に規定されていません。
クライアントが使う可能性のある RFC で定義された HTTP のメソッドはすべて実装する必要があります。
クライアントからのリクエストに使われないと分かっているメソッドは実装しなくてもかまいません。
実装されていない HTTP メソッドであった場合、自身の service メソッドが
例外を発生させます。
このメソッドが呼ばれた時点では、クライアントからのリクエスト... -
Gem
:: Package :: TarWriter :: BoundedStream (18049.0) -
データサイズの上限がある IO のラッパークラスです。
データサイズの上限がある IO のラッパークラスです。 -
Gem
:: Package :: TarWriter :: RestrictedStream # write(data) -> Integer (18049.0) -
与えられたデータを自身に関連付けられた IO に書き込みます。
与えられたデータを自身に関連付けられた IO に書き込みます。
@param data 書き込むデータを指定します。
@return 書き込んだデータのサイズを返します。 -
Psych
:: Stream (18049.0) -
入力されたオブジェクトから変換された YAML document を指定した IO に出力する機能を持つクラスです。
入力されたオブジェクトから変換された YAML document を指定した
IO に出力する機能を持つクラスです。
start で変換を開始し、push で変換する Ruby オブジェクトを渡し、
最後に finish を呼ぶことで変換を完了します。
stream = Psych::Stream.new($stdout)
stream.start
stream.push({:foo => 'bar'})
stream.finish
YAML document は(バッファリングされずに)直接 $stdout に出力されます。
finish を確実に呼び出すためには Ps... -
StringIO
# set _ encoding(ext _ enc) -> self (18037.0) -
自身のエンコーディングを指定されたエンコーディングに設定します。
自身のエンコーディングを指定されたエンコーディングに設定します。
@param ext_enc エンコーディングを指定します。
nil を指定した場合は Encoding.default_external が
使われます。
@param int_enc 無視されます。IO クラスの API との互換性のために用
意されています。
@param opt 無視されます。IO クラスの API との互換性のために用意さ
れています。 -
StringIO
# set _ encoding(ext _ enc , int _ enc) -> self (18037.0) -
自身のエンコーディングを指定されたエンコーディングに設定します。
自身のエンコーディングを指定されたエンコーディングに設定します。
@param ext_enc エンコーディングを指定します。
nil を指定した場合は Encoding.default_external が
使われます。
@param int_enc 無視されます。IO クラスの API との互換性のために用
意されています。
@param opt 無視されます。IO クラスの API との互換性のために用意さ
れています。 -
StringIO
# set _ encoding(ext _ enc , int _ enc , opt) -> self (18037.0) -
自身のエンコーディングを指定されたエンコーディングに設定します。
自身のエンコーディングを指定されたエンコーディングに設定します。
@param ext_enc エンコーディングを指定します。
nil を指定した場合は Encoding.default_external が
使われます。
@param int_enc 無視されます。IO クラスの API との互換性のために用
意されています。
@param opt 無視されます。IO クラスの API との互換性のために用意さ
れています。 -
StringIO
# bytes -> Enumerator (18019.0) -
自身から 1 バイトずつ読み込み、整数 ch に変換し、それを引数として与えられたブロックを実行します。
自身から 1 バイトずつ読み込み、整数 ch に変換し、それを引数として与えられたブロックを実行します。
@raise IOError 自身が読み取り不可なら発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge")
a.each_byte{|ch| p ch }
#=> 104
# 111
# 103
# 101
//}
@see IO#each_byte