ライブラリ
- ビルトイン (78)
-
cgi
/ core (31) -
cgi
/ html (47) -
cgi
/ session (1) - csv (4)
- date (1)
- dbm (1)
- drb (1)
- fiddle (3)
- getoptlong (6)
-
io
/ nonblock (1) - ipaddr (1)
-
irb
/ context (15) -
irb
/ ext / save-history (1) -
irb
/ ext / tracer (3) - json (23)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / date (1) -
json
/ add / date _ time (1) -
json
/ add / exception (1) -
json
/ add / ostruct (1) -
json
/ add / range (1) -
json
/ add / rational (1) -
json
/ add / regexp (1) -
json
/ add / struct (1) -
json
/ add / symbol (1) -
json
/ add / time (1) - kconv (1)
- matrix (38)
- mkmf (11)
- monitor (3)
-
net
/ ftp (3) -
net
/ http (11) -
net
/ imap (17) - open-uri (4)
- openssl (34)
- optparse (36)
- pathname (1)
- prime (3)
- pstore (2)
- psych (5)
- rake (9)
-
rake
/ packagetask (2) -
rake
/ rdoctask (1) -
rake
/ testtask (2) -
rdoc
/ context (9) -
rdoc
/ markup (2) -
rdoc
/ top _ level (1) - rexml (1)
-
rexml
/ document (19) -
rexml
/ parsers / pullparser (1) -
rexml
/ sax2listener (1) -
rexml
/ streamlistener (9) - rss (7)
-
rubygems
/ command (3) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ config _ file (4) -
rubygems
/ platform (1) -
rubygems
/ security (2) -
rubygems
/ specification (37) -
rubygems
/ user _ interaction (11) -
rubygems
/ version (2) - shell (1)
-
shell
/ process-controller (15) - socket (10)
- stringio (2)
- strscan (1)
- time (2)
- tracer (2)
- tsort (5)
- uri (2)
-
webrick
/ httpauth / digestauth (1) -
webrick
/ httprequest (1) -
webrick
/ httpresponse (9) -
webrick
/ httpservlet / abstract (7) -
webrick
/ httpversion (1) -
win32
/ registry (3) - zlib (2)
クラス
-
ARGF
. class (2) - Addrinfo (1)
- Array (1)
- BasicSocket (5)
- BigDecimal (1)
- CGI (1)
-
CGI
:: Session (1) -
CSV
:: Table (2) - Complex (1)
- DBM (1)
-
DRb
:: DRbRemoteError (1) - Date (1)
- DateTime (2)
-
Encoding
:: Converter (8) -
Encoding
:: InvalidByteSequenceError (2) -
Encoding
:: UndefinedConversionError (2) - Exception (8)
-
Fiddle
:: Function (3) -
Gem
:: Command (3) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: ConfigFile (4) -
Gem
:: Platform (1) -
Gem
:: Security :: Policy (2) -
Gem
:: Specification (37) -
Gem
:: StreamUI (7) -
Gem
:: StreamUI :: SilentProgressReporter (1) -
Gem
:: StreamUI :: SimpleProgressReporter (1) -
Gem
:: StreamUI :: VerboseProgressReporter (1) -
Gem
:: Version (2) - GetoptLong (6)
- IO (3)
- IPAddr (1)
-
IRB
:: Context (19) -
JSON
:: Parser (1) -
JSON
:: State (11) - Matrix (18)
-
Matrix
:: EigenvalueDecomposition (10) -
Matrix
:: LUPDecomposition (10) - Method (1)
- Module (4)
- Monitor (1)
-
Net
:: FTP (3) -
Net
:: HTTP (2) -
Net
:: HTTPResponse (8) -
Net
:: IMAP (1) -
Net
:: IMAP :: BodyTypeBasic (2) -
Net
:: IMAP :: BodyTypeMessage (2) -
Net
:: IMAP :: BodyTypeText (2) -
Net
:: IMAP :: ContentDisposition (2) -
Net
:: IMAP :: ContinuationRequest (1) -
Net
:: IMAP :: ResponseCode (1) -
Net
:: IMAP :: ResponseText (1) -
Net
:: IMAP :: TaggedResponse (3) -
Net
:: IMAP :: UntaggedResponse (2) - Object (4)
-
OpenSSL
:: ASN1 :: Constructive (3) -
OpenSSL
:: ASN1 :: ObjectId (1) -
OpenSSL
:: Config (8) -
OpenSSL
:: OCSP :: Response (2) -
OpenSSL
:: SSL :: SSLContext (6) -
OpenSSL
:: SSL :: SSLSocket (1) -
OpenSSL
:: SSL :: Session (4) -
OpenSSL
:: X509 :: Extension (5) -
OpenSSL
:: X509 :: ExtensionFactory (1) -
OpenSSL
:: X509 :: StoreContext (2) - OpenStruct (1)
- OptionParser (27)
-
OptionParser
:: ParseError (5) - PStore (2)
- Pathname (1)
-
Prime
:: TrialDivisionGenerator (3) - Proc (1)
-
Psych
:: Nodes :: Node (2) -
Psych
:: SyntaxError (1) -
RDoc
:: Context (5) -
RDoc
:: Context :: Section (4) -
RDoc
:: Markup (2) -
RDoc
:: Options (18) -
RDoc
:: TopLevel (1) -
REXML
:: Attribute (1) -
REXML
:: Declaration (1) -
REXML
:: Document (2) -
REXML
:: Element (1) -
REXML
:: Instruction (7) -
REXML
:: NotationDecl (4) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullEvent (1) -
REXML
:: XMLDecl (3) -
RSS
:: TrackBackModel20 :: TrackBackAbout (2) -
RSS
:: TrackBackModel20 :: TrackBackPing (2) -
Rake
:: Application (4) -
Rake
:: InvocationChain (1) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Rake
:: PackageTask (2) -
Rake
:: RDocTask (1) -
Rake
:: Task (1) -
Rake
:: TestTask (2) - Range (1)
- Rational (4)
- Regexp (1)
-
RubyVM
:: InstructionSequence (11) - Shell (1)
-
Shell
:: ProcessController (15) - SignalException (1)
- Socket (1)
-
Socket
:: Option (2) - String (21)
- StringIO (2)
- StringScanner (1)
- Struct (1)
- Symbol (1)
- Thread (2)
-
Thread
:: Backtrace :: Location (7) - Time (5)
- TracePoint (1)
- Tracer (2)
- UDPSocket (1)
-
URI
:: Generic (1) -
URI
:: LDAP (1) - UnboundMethod (1)
-
WEBrick
:: HTTPAuth :: DigestAuth (1) -
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPResponse (9) -
WEBrick
:: HTTPServlet :: AbstractServlet (7) -
WEBrick
:: HTTPVersion (1) -
Win32
:: Registry (3) -
Zlib
:: Deflate (1) -
Zlib
:: Inflate (1)
モジュール
-
CGI
:: HtmlExtension (47) -
CGI
:: QueryExtension (30) - DublinCoreModel (3)
-
Gem
:: InstallUpdateOptions (1) -
Gem
:: UserInteraction (1) -
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (3) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (12)
- MonitorMixin (2)
-
Net
:: HTTPHeader (1) -
OpenSSL
:: Buffering (1) -
OpenURI
:: Meta (2) -
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (4) -
REXML
:: SAX2Listener (1) -
REXML
:: StreamListener (9) -
Rake
:: TaskManager (1) - TSort (5)
キーワード
- == (1)
- [] (2)
-
_ _ inspect _ _ (1) -
_ _ to _ s _ _ (1) -
_ dump (1) - a (2)
-
absolute
_ path (2) - accept (2)
-
accept
_ charset (1) -
accept
_ encoding (1) -
accept
_ language (1) -
active
_ job? (1) -
active
_ jobs (1) -
active
_ jobs _ exist? (1) -
add
_ attribute (1) -
add
_ schedule (1) -
add
_ value (1) - alert (1)
-
alert
_ error (1) -
alert
_ warning (1) -
ap
_ name (1) -
arg
_ config (1) -
array
_ nl (1) -
array
_ nl= (1) -
ascii
_ only? (1) - ask (2)
-
ask
_ yes _ no (1) - attlistdecl (1)
- attributes (1)
-
auth
_ type (1) - authenticate (1)
- autoload? (1)
- autorequire (1)
-
back
_ trace _ limit (1) -
back
_ trace _ limit= (1) - backtrace (2)
- backtrace= (1)
-
backtrace
_ locations (3) - base (1)
-
base
_ label (2) - bindir (1)
- binread (1)
- blockquote (2)
- body (2)
-
ca
_ file (1) -
ca
_ path (1) -
cache
_ control (1) - call (1)
- canonname (1)
- capitalize (1)
- capitalize! (1)
- cdata (1)
- charset (1)
- checkbox (2)
-
checkbox
_ group (2) -
choose
_ from _ list (1) - ciphers (1)
- clone (4)
- code (1)
- cofactor (1)
-
cofactor
_ expansion (1) - comment (1)
- component (1)
- concat (3)
-
config
_ file _ name (1) - conj (1)
- conjugate (1)
-
const
_ defined? (1) -
const
_ get (1) - constants (1)
- content (4)
- content= (3)
-
content
_ encoding (1) -
content
_ id (3) -
content
_ type (5) - context (1)
- convert (2)
- create (1)
-
create
_ body (1) -
create
_ ext _ from _ string (1) -
create
_ header (1) - css (1)
- d (1)
- data (1)
-
dc
_ contributor (1) -
dc
_ contributor= (1) -
dc
_ contributors (1) -
default
_ argv (1) -
default
_ executable (1) - desc (1)
- description (5)
-
destination
_ encoding _ name (2) - det (1)
-
det
_ e (1) - determinant (1)
-
determinant
_ e (1) - diagonal? (1)
-
dir
_ config (1) - disasm (1)
- disassemble (1)
- disposition (1)
-
do
_ DELETE (1) -
do
_ GET (1) -
do
_ HEAD (1) -
do
_ OPTIONS (1) -
do
_ POST (1) -
do
_ PUT (1) - doctype (1)
- done (3)
- downcase (1)
- downcase! (1)
-
dsp
_ type (1) - each (1)
-
each
_ attribute (1) -
each
_ strongly _ connected _ component (2) -
each
_ strongly _ connected _ component _ from (2) - eigen (1)
- eigensystem (1)
-
eigenvalue
_ matrix (1) - eigenvalues (1)
-
eigenvector
_ matrix (1) -
eigenvector
_ matrix _ inv (1) - eigenvectors (1)
- elementdecl (1)
- email (1)
-
enable
_ config (2) - encode (3)
- encode! (2)
- entity (2)
- entitydecl (1)
- environment (1)
-
error
_ bytes (1) -
error
_ char (1) -
error
_ string (1) - eval (1)
- executable (1)
- executables (1)
- extensions (2)
-
extra
_ accessor _ flags (1) -
extra
_ accessors (1) -
extra
_ chain _ cert (1) -
extra
_ chain _ cert= (1) -
extra
_ rdoc _ files (1) -
extra
_ rdoc _ files= (1) - fetch (1)
-
file
_ field (2) -
file
_ name (1) - filename (1)
- files (2)
-
find
_ local _ symbol (1) - finish (1)
-
first
_ lineno (1) - form (4)
- from (1)
-
full
_ gem _ path (1) -
full
_ name (1) -
gateway
_ interface (1) - generate (1)
- get (1)
-
get
_ one _ gem _ name (1) -
get
_ one _ optional _ argument (1) -
get
_ option (1) -
get
_ path (1) -
get
_ value (1) - header (1)
- help (1)
- hidden (2)
-
history
_ file (1) - homepage (1)
- host (1)
- html (2)
- hton (1)
-
http
_ version (1) - id (1)
-
image
_ format (1) - img (2)
-
in
_ transaction (1) - indent (1)
- indent= (1)
-
insert
_ output (1) - inspect (8)
-
install
_ update _ defaults _ str (1) -
installation
_ path (1) - instruction (1)
- instruction? (1)
- instructions (1)
- investigation (1)
-
irb
_ name (1) -
irb
_ path (1) - iso8601 (1)
- jobs (1)
-
jobs
_ exist? (1) - kconv (1)
- keys (1)
-
kill
_ job (1) - l (1)
- label (2)
-
laplace
_ expansion (1) -
last
_ description (1) -
last
_ response (1) -
last
_ response _ code (1) - lastresp (1)
-
lib
_ files (1) - lineno (1)
-
load
_ modules (1) -
loaded
_ from (1) -
long
_ name (1) - lup (1)
-
lup
_ decomposition (1) -
main
_ page (1) -
mark
_ version (1) - markup (1)
- merge (1)
-
mon
_ try _ enter (1) - msg (1)
-
multipart
_ form (4) - name (8)
- negotiate (1)
- next (1)
-
node
_ type (1) - nonblock (1)
- normalize (1)
- notationdecl (1)
-
object
_ nl (1) -
object
_ nl= (1) - oid (1)
-
only
_ trusted (1) -
only
_ trusted= (1) -
op
_ dir (1) -
op
_ name (1) - open (2)
-
option
_ string (1) - order (4)
- order! (4)
-
original
_ dir (1) -
original
_ name (1) -
original
_ platform (1) - orthogonal? (1)
- p (1)
- param (1)
- parse (2)
- parse! (2)
-
parse
_ csv (1) - partition (1)
-
password
_ field (2) - path (3)
-
path
_ info (1) -
path
_ translated (1) - permutation? (1)
- permute (2)
- permute! (2)
- pivots (1)
- platform (1)
-
post
_ connection _ check (1) - pragma (1)
-
process
_ controller (1) -
processing
_ instruction (1) -
program
_ name (1) -
prompt
_ c (1) -
prompt
_ i (1) -
prompt
_ n (1) -
prompt
_ s (1) -
psych
_ to _ yaml (1) - ptr (1)
- public (1)
- putback (2)
-
query
_ string (1) - quiet (1)
- quiet? (1)
-
radio
_ group (2) -
raised
_ exception (1) - rakefile (1)
-
raw
_ data (3) -
rdoc
_ include (1) - read (1)
-
read
_ body (2) -
read
_ nonblock (4) - reason (2)
-
reason
_ phrase (1) -
recv
_ nonblock (1) -
recvfrom
_ nonblock (2) - recvmsg (1)
-
recvmsg
_ nonblock (1) - referer (1)
- release (1)
-
remote
_ addr (1) -
remote
_ host (1) -
remote
_ ident (1) -
remote
_ user (1) - replacement (1)
- replacement= (1)
-
request
_ method (2) -
require
_ path (1) -
require
_ paths (1) - reset (2)
- responses (1)
-
return
_ format (1) - rewind (1)
- rpartition (1)
-
rubygems
_ version (1) -
script
_ name (1) -
scrolling
_ list (2) - section (1)
- sections (1)
- select (1)
- sendmsg (1)
-
sendmsg
_ nonblock (1) - sequence (1)
-
server
_ name (1) -
server
_ protocol (1) -
server
_ software (1) - service (1)
-
session
_ id (1) -
session
_ id _ context (1) -
set
_ backtrace (2) -
set
_ dictionary (2) -
set
_ encoding (1) -
set
_ error (1) - sfork (1)
- shell (1)
-
signing
_ key (1) - signm (1)
-
singleton
_ methods (1) - singular? (1)
- solve (1)
- source (1)
-
source
_ location (3) - space (1)
- space= (1)
-
space
_ before (1) -
space
_ before= (1) -
ssl
_ version (1) -
stand
_ alone? (2) - standalone (1)
-
start
_ job (1) -
static
_ path (1) -
status
_ line (1) -
status
_ string (1) - strftime (1)
-
strongly
_ connected _ components (1) - submit (2)
- succ (1)
- summary (1)
-
summary
_ indent (1) - swapcase (1)
- swapcase! (1)
- system (1)
- tag (1)
- tagging (1)
- tagging= (1)
- target (1)
- target= (1)
- template (1)
-
template
_ dir (1) -
terminate
_ interaction (1) -
terminate
_ job (1) - terminated? (1)
-
test
_ file (1) -
test
_ files (1) -
test
_ suite _ file (1) - text (1)
-
text
_ field (2) - textarea (2)
- title (2)
- title= (1)
-
to
_ a (5) -
to
_ ary (2) -
to
_ binary (1) -
to
_ csv (2) -
to
_ der (3) -
to
_ json (21) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ pem (1) -
to
_ r (1) -
to
_ ruby (1) -
to
_ s (18) -
to
_ text (1) -
to
_ yaml (2) - trace (2)
- transaction (1)
- truncate (1)
- trust= (1)
-
try
_ constant (2) -
try
_ enter (1) -
try
_ link (2) -
try
_ mon _ enter (1) - u (1)
-
unmatched
_ alias _ lists (1) - upcase (1)
- upcase! (1)
-
use
_ tracer (1) -
use
_ tracer= (1) -
use
_ tracer? (1) -
user
_ agent (1) - v (1)
-
v
_ inv (1) - value (3)
- ver (1)
- version (6)
- version= (1)
-
wait
_ all _ jobs _ execution (1) -
waiting
_ job? (1) -
waiting
_ jobs (1) -
waiting
_ jobs _ exist? (1) - webcvs (1)
-
with
_ config (2) -
write
_ nonblock (2) - xmldecl (1)
- xmlschema (1)
- yaml (1)
- zone (2)
検索結果
先頭5件
-
OpenURI
:: Meta # content _ type -> String (18604.0) -
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "text/html"
}
//} -
Proc
# source _ location -> [String , Integer] | nil (18604.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
:: SyntaxError # context -> String (18604.0) -
エラーが生じたコンテキストを文字列で返します。
エラーが生じたコンテキストを文字列で返します。 -
RDoc
:: Markup # content -> String (18604.0) -
変換する文字列を返します。
変換する文字列を返します。
rdoc ライブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。
変換のために加工したオブジェクトを改行で連結したものを返すため、変換前
の文字列と結果が異なる事があります。
@see SM::SimpleMarkup#convert -
RDoc
:: Markup # convert(str , formatter) -> object | "" (18604.0) -
str で指定された文字列を formatter に変換させます。
str で指定された文字列を formatter に変換させます。
@param str 変換する文字列を指定します。
@param formatter SM::ToHtml、SM::ToLaTeX などのインスタンス
を指定します。
変換結果は formatter によって文字列や配列を返します。 -
REXML
:: Document # stand _ alone? -> String (18604.0) -
XML 宣言の standalone の値を文字列で返します。
XML 宣言の standalone の値を文字列で返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.stand_alone? # => "yes"
//} -
REXML
:: Document # version -> String (18604.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
:: XMLDecl # stand _ alone? -> String | nil (18604.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。 -
REXML
:: XMLDecl # standalone -> String | nil (18604.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。 -
REXML
:: XMLDecl # version -> String (18604.0) -
XML文書のバージョンを文字列で返します。
XML文書のバージョンを文字列で返します。 -
Rake
:: PackageTask # version -> String (18604.0) -
作成するパッケージのバージョンを表す文字列を返します。
作成するパッケージのバージョンを表す文字列を返します。 -
Rake
:: PackageTask # version=(str) (18604.0) -
作成するパッケージのバージョンをセットします。
作成するパッケージのバージョンをセットします。
@param str バージョンを表す文字列を指定します。 -
Rake
:: Task # investigation -> String (18604.0) -
自身の詳しい内部状態を文字列化して返します。
自身の詳しい内部状態を文字列化して返します。
このメソッドはデバッグに便利です。 -
Rake
:: TestTask # options -> String (18604.0) -
テストスイートに渡すパラメータを返します。
テストスイートに渡すパラメータを返します。
コマンドラインで "TESTOPTS=options" が指定されると、この値を上書きします。
デフォルトは何も指定されていません。 -
Range
# to _ json(*args) -> String (18604.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
(1..5).to_json # => "{\"json_class\":\"Range\",\"a\":[1,5,false]}"
//... -
Regexp
# to _ json(*args) -> String (18604.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数には何の意味もありません。
//emlist[例][ruby]{
require "json/add/core"
/0\d{1,4}-\d{1,4}-\d{4}/.to_json # => "{\"json_class\":\"Regexp\",\"o\":0,\"s\":\"0\\\\d{1,4}-\\\\d{1,4}-\\\\d{4}\"}"... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (18604.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 で得たバイナリデータは他のマシンに移動できません。他... -
Socket
# recvfrom _ nonblock(maxlen , flags=0) -> [String , Addrinfo] (18604.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... -
StringScanner
# concat(str) -> self (18604.0) -
操作対象の文字列に対し str を破壊的に連結します。 マッチ記録は変更されません。
操作対象の文字列に対し str を破壊的に連結します。
マッチ記録は変更されません。
selfを返します。
@param str 操作対象の文字列に対し str を破壊的に連結します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test') # => #<StringScanner 0/4 @ "test">
s.scan(/\w(\w*)/) # => "test"
s[0] # => "test"
s[1] ... -
Symbol
# to _ json(*args) -> String (18604.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
@see JSON::Generator::GeneratorMethods::Hash#to_json -
Time
# to _ json(*args) -> String (18604.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Time.now.to_json # => "{\"json_class\":\"Time\",\"s\":1544968675,\"n\... -
Time
# zone -> String (18604.0) -
タイムゾーンを表す文字列を返します。
タイムゾーンを表す文字列を返します。
//emlist[][ruby]{
p Time.now.zone # => "JST"
//} -
UDPSocket
# recvfrom _ nonblock(maxlen , flags=0) -> [String , Array] (18604.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... -
URI
:: LDAP # extensions -> String (18604.0) -
自身の extensions を文字列で返します。
自身の extensions を文字列で返します。 -
UnboundMethod
# source _ location -> [String , Integer] | nil (18604.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]
/... -
WEBrick
:: HTTPRequest # content _ type -> String | nil (18604.0) -
リクエストの Content-Type ヘッダを文字列で返します。
リクエストの Content-Type ヘッダを文字列で返します。 -
WEBrick
:: HTTPServlet :: AbstractServlet # do _ OPTIONS(request , response) -> () (18604.0) -
自身の service メソッドから HTTP のリクエストに応じて 呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し なければいけません。返り値は特に規定されていません。
自身の service メソッドから HTTP のリクエストに応じて
呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し
なければいけません。返り値は特に規定されていません。
クライアントが使う可能性のある RFC で定義された HTTP のメソッドはすべて実装する必要があります。
クライアントからのリクエストに使われないと分かっているメソッドは実装しなくてもかまいません。
実装されていない HTTP メソッドであった場合、自身の service メソッドが
例外を発生させます。
このメソッドが呼ばれた時点では、クライアントからのリクエスト... -
Encoding
:: UndefinedConversionError # error _ char -> String (18304.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
//} -
Matrix
# component(i , j) -> () (18304.0) -
(i,j)要素を返します。 行列の範囲外の値を指定した場合には nil を返します。
(i,j)要素を返します。
行列の範囲外の値を指定した場合には nil を返します。
@param i 要素の行成分を0オリジンで指定します。
@param j 要素の列成分を0オリジンで指定します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, 2, 1.5]
m = Matrix[a1, a2, a3]
p m[0, 0] # => 1
p m[1, 1] # => 15
p m[1, 2] # => 20
p m[1, 3] # => nil
//} -
Matrix
:: EigenvalueDecomposition # d -> Matrix (18304.0) -
固有値を対角成分に並べた行列を返します。
固有値を対角成分に並べた行列を返します。 -
Matrix
:: LUPDecomposition # l -> Matrix (18304.0) -
LUP分解の下半行列部分を返します。
LUP分解の下半行列部分を返します。 -
Matrix
:: LUPDecomposition # p -> Matrix (18304.0) -
LUP分解の置換行列部分を返します。
LUP分解の置換行列部分を返します。 -
Matrix
:: LUPDecomposition # solve(b) -> Vector | Matrix (18304.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 (18304.0) -
LUP分解の上半行列部分を返します。
LUP分解の上半行列部分を返します。 -
Net
:: IMAP :: ContentDisposition # dsp _ type -> String (18304.0) -
Content-Disposition フィールドのタイプを文字列で返します。
Content-Disposition フィールドのタイプを文字列で返します。
"INLINE", "ATTACHMENT" などの文字列を返します。
詳しくは 2183 などを見てください。 -
Net
:: IMAP :: ContinuationRequest # raw _ data -> String (18304.0) -
レスポンス文字列を返します。
レスポンス文字列を返します。 -
RDoc
:: Context :: Section # comment -> String | nil (18304.0) -
section のコメントを返します。
section のコメントを返します。 -
RDoc
:: Context :: Section # inspect -> String (18304.0) -
自身の情報を人間に読みやすい文字列にして返します。
自身の情報を人間に読みやすい文字列にして返します。 -
RDoc
:: Context :: Section # sequence -> String (18304.0) -
section のシーケンス番号を文字列で返します。
section のシーケンス番号を文字列で返します。
リンクを作成する時に使われます。 -
RDoc
:: Context :: Section # title -> String | nil (18304.0) -
section のタイトルを返します。
section のタイトルを返します。 -
REXML
:: Instruction # target -> String (18304.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 (18304.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (18304.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 (18304.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 (18304.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 (18304.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 (18304.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 (18304.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 (18304.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... -
String
# concat(*arguments) -> self (18304.0) -
self に複数の文字列を破壊的に連結します。
self に複数の文字列を破壊的に連結します。
引数の値が整数である場合は Integer#chr の結果に相当する文字を末尾に追加します。追加する文字のエンコーディングは self.encoding です。
self を返します。
@param arguments 複数の文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "foo"
str.concat
p str # => "foo"
str = "foo"
str.concat "bar", "baz"
p str # => "foobarbaz"
str = "foo"
str.... -
String
# concat(other) -> self (18304.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self に文字列 other を破壊的に連結します。
other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"
p str # => "stringXXX"
str << "YYY"
p str # => "stringXXXYYY"
str << 65 # 文字AのASCIIコード
p str # => "stri... -
StringIO
# write _ nonblock(obj) -> Integer (18304.0) -
自身に obj を書き込みます。StringIO#write と同じです。
自身に obj を書き込みます。StringIO#write と同じです。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。 -
Thread
:: Backtrace :: Location # absolute _ path -> String (18304.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 (18304.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 (18304.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 (18304.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 (18304.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 (18304.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] (18004.0) -
固有値を配列で返します。
固有値を配列で返します。 -
Matrix
:: EigenvalueDecomposition # eigenvectors -> [Vector] (18004.0) -
右固有ベクトルを配列で返します。
右固有ベクトルを配列で返します。 -
Matrix
:: LUPDecomposition # det -> Numeric (18004.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant -
Matrix
:: LUPDecomposition # determinant -> Numeric (18004.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant -
Matrix
:: LUPDecomposition # pivots -> [Integer] (18004.0) -
ピボッティングを表す配列を返します。
ピボッティングを表す配列を返します。 -
Matrix
:: LUPDecomposition # singular? -> bool (18004.0) -
元の行列が正方で特異なら true を、正則なら false を返します。 LUP 分解の結果を利用して判定します。
元の行列が正方で特異なら true を、正則なら false を返します。
LUP 分解の結果を利用して判定します。
@see Matrix#singular? -
OpenSSL
:: ASN1 :: Constructive # each {|item| . . . } -> self (18004.0) -
構造型のデータに含まれる各要素に対してブロックを 評価します。
構造型のデータに含まれる各要素に対してブロックを
評価します。 -
OpenSSL
:: ASN1 :: Constructive # tagging -> Symbol | nil (18004.0) -
タグ付けの方式を返します。
タグ付けの方式を返します。
:IMPLICIT、:EXPLICIT、nil のいずれかを返します。
タグ(OpenSSL::ASN1::ASN1Data#tag)が :UNIVERSAL ならば
この値は無視されます。
nil は :IMPLICIT と同義です。
@see OpenSSL::ASN1::Constructive#tagging= -
OpenSSL
:: ASN1 :: Constructive # tagging=(tag) (18004.0) -
タグ付けの方式を設定します。
タグ付けの方式を設定します。
@param tagging タグ付けの方式(:IMPLICIT または :EXPLICIT)
@see OpenSSL::ASN1::Constructive#tagging= -
Prime
:: TrialDivisionGenerator # next -> Integer (18004.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。 -
Prime
:: TrialDivisionGenerator # rewind -> nil (18004.0) -
列挙状態を巻き戻します。
列挙状態を巻き戻します。 -
Prime
:: TrialDivisionGenerator # succ -> Integer (18004.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。 -
REXML
:: Instruction # ==(other) -> bool (18004.0) -
other と self が同じ 処理命令である場合に真を返します。
other と self が同じ 処理命令である場合に真を返します。
同じとは、 REXML::Instruction#target と REXML::Instruction#content
が一致することを意味します。
@param other 比較対象 -
REXML
:: Instruction # node _ type -> Symbol (18004.0) -
Symbol :processing_instruction を返します。
Symbol :processing_instruction を返します。 -
REXML
:: Instruction # target=(value) (18004.0) -
XML 処理命令のターゲットを value に変更します。
XML 処理命令のターゲットを value に変更します。
@param value 新たなターゲット(文字列) -
RubyVM
:: InstructionSequence # eval -> object (18004.0) -
self の命令シーケンスを評価してその結果を返します。
self の命令シーケンスを評価してその結果を返します。
RubyVM::InstructionSequence.compile("1 + 2").eval # => 3 -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (18004.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 (18004.0) -
self の情報を 14 要素の配列にして返します。
...ンドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2, :stack_max=>2},
# "<compiled>"... -
Shell
:: ProcessController # active _ job?(job) -> bool (18004.0) -
指定されたジョブが実行中である場合は真を返します。 そうでない場合は偽を返します。
指定されたジョブが実行中である場合は真を返します。
そうでない場合は偽を返します。
@param job ジョブを指定します。 -
Shell
:: ProcessController # active _ jobs -> Array (18004.0) -
実行中のジョブの配列を返します。
実行中のジョブの配列を返します。 -
Shell
:: ProcessController # active _ jobs _ exist? -> bool (18004.0) -
実行中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
実行中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。 -
Shell
:: ProcessController # add _ schedule(command) -> () (18004.0) -
指定されたコマンドを待機ジョブとして登録します。 ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。
指定されたコマンドを待機ジョブとして登録します。
ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。
@param command コマンドを指定します。 -
Shell
:: ProcessController # jobs -> Array (18004.0) -
全てのジョブの配列を返します。
全てのジョブの配列を返します。 -
Shell
:: ProcessController # jobs _ exist? -> bool (18004.0) -
実行中か待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
実行中か待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。 -
Shell
:: ProcessController # kill _ job(signal , command) -> Integer (18004.0) -
指定されたコマンドにシグナルを送ります。
指定されたコマンドにシグナルを送ります。
@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。
@param command コマンドを指定します。
@see Process.#kill -
Shell
:: ProcessController # sfork(command) { . . . } -> [Integer , IO , IO] (18004.0) -
シンプルな fork です。
シンプルな fork です。
@param command コマンドを指定します。
@return [PID, 入力用 IO, 出力用 IO] からなる配列を返します。 -
Shell
:: ProcessController # shell -> Shell (18004.0) -
@todo
@todo -
Shell
:: ProcessController # start _ job(command = nil) (18004.0) -
指定されたコマンドの実行を開始します。
指定されたコマンドの実行を開始します。
コマンドを省略した場合は、待ち状態のジョブのうち先頭のものを実行します。
@param command コマンドを指定します。 -
Shell
:: ProcessController # terminate _ job(command) (18004.0) -
指定されたコマンドを終了します。
指定されたコマンドを終了します。
@param command コマンドを指定します。 -
Shell
:: ProcessController # waiting _ job?(job) -> bool (18004.0) -
指定されたジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
指定されたジョブが存在する場合は真を返します。
そうでない場合は偽を返します。
@param job ジョブを指定します。 -
Shell
:: ProcessController # waiting _ jobs -> Array (18004.0) -
待機中のジョブを返します。
待機中のジョブを返します。 -
Shell
:: ProcessController # waiting _ jobs _ exist? -> bool (18004.0) -
待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。 -
Thread
:: Backtrace :: Location # lineno -> Integer (18004.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 (9904.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 (9904.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 # checkbox(attributes) -> String (9604.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 (9604.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 (9604.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 (9604.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 (9604.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 (9604.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 (9604.0) -
トップレベルの html 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
トップレベルの html 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
擬似属性の "PRETTY" に文字列を与えるとその文字列でインデントした HTML を生成します。
擬似属性の "DOCTYPE" には DOCTYPE 宣言として使用する文字列を与えることができます。
例:
html{ "string" }
# <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2...