種類
ライブラリ
- English (1)
- ビルトイン (116)
- base64 (1)
- benchmark (3)
- bigdecimal (1)
-
cgi
/ core (34) -
cgi
/ html (47) -
cgi
/ session (1) -
cgi
/ util (1) - csv (18)
- date (1)
- dbm (2)
- drb (1)
-
drb
/ acl (1) - e2mmap (2)
- erb (1)
- etc (15)
- fiddle (1)
- forwardable (1)
- gdbm (1)
- getoptlong (3)
- ipaddr (1)
- irb (1)
-
irb
/ context (20) -
irb
/ ext / save-history (1) - json (38)
-
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 (13)
- logger (1)
- mkmf (7)
-
net
/ ftp (3) -
net
/ http (10) -
net
/ imap (17) -
net
/ pop (1) -
net
/ smtp (1) - nkf (2)
- objspace (1)
- open-uri (7)
- openssl (36)
- optparse (45)
- pathname (1)
- psych (11)
- rake (9)
-
rake
/ packagetask (1) -
rake
/ rdoctask (1) -
rake
/ testtask (1) - rbconfig (4)
- rdoc (2)
-
rdoc
/ context (6) -
rdoc
/ generator / json _ index (1) -
rdoc
/ generator / ri (1) -
rdoc
/ markup (1) - readline (4)
- rexml (1)
-
rexml
/ document (15) - ripper (1)
-
ripper
/ filter (1) -
ripper
/ lexer (1) - rubygems (3)
-
rubygems
/ command (3) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ config _ file (3) -
rubygems
/ platform (1) -
rubygems
/ security (1) -
rubygems
/ specification (37) -
rubygems
/ user _ interaction (5) -
rubygems
/ version (3) - socket (11)
- stringio (2)
- strscan (3)
- syslog (1)
-
syslog
/ logger (1) - time (2)
- uri (4)
-
webrick
/ accesslog (1) -
webrick
/ config (1) -
webrick
/ httpauth / authenticator (2) -
webrick
/ httprequest (1) -
webrick
/ httpresponse (10) -
webrick
/ httpstatus (1) -
webrick
/ httpversion (1) - win32ole (1)
-
yaml
/ dbm (1) - zlib (7)
クラス
- ACL (1)
-
ARGF
. class (3) - Addrinfo (1)
- Array (4)
- BasicSocket (3)
-
Benchmark
:: Tms (1) - BigDecimal (2)
- Binding (1)
- CGI (3)
-
CGI
:: Session (1) - CSV (14)
-
CSV
:: Table (2) - Class (1)
- Complex (1)
- DBM (2)
-
DRb
:: DRbRemoteError (1) - Date (1)
- DateTime (2)
- ERB (1)
-
Encoding
:: Converter (13) -
Encoding
:: InvalidByteSequenceError (2) -
Encoding
:: UndefinedConversionError (2) - Exception (7)
-
Fiddle
:: Function (1) - GDBM (1)
-
Gem
:: Command (3) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: ConfigFile (3) -
Gem
:: Platform (1) -
Gem
:: Security :: Policy (1) -
Gem
:: Specification (37) -
Gem
:: StreamUI (4) -
Gem
:: Version (2) - GetoptLong (3)
- IO (5)
- IPAddr (1)
-
IRB
:: Context (20) -
JSON
:: Parser (1) -
JSON
:: State (10) - Logger (1)
- Method (1)
- Module (11)
-
Net
:: FTP (3) -
Net
:: HTTP (1) -
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) -
Net
:: POP3 (1) -
Net
:: SMTP (1) - Object (12)
-
OpenSSL
:: ASN1 :: ObjectId (1) -
OpenSSL
:: Config (9) -
OpenSSL
:: OCSP :: Response (3) -
OpenSSL
:: SSL :: SSLContext (4) -
OpenSSL
:: SSL :: Session (4) -
OpenSSL
:: X509 :: Extension (5) -
OpenSSL
:: X509 :: ExtensionFactory (3) -
OpenSSL
:: X509 :: StoreContext (3) - OpenStruct (1)
- OptionParser (35)
-
OptionParser
:: ParseError (6) - Pathname (1)
- Proc (1)
-
Psych
:: Nodes :: Node (2) -
Psych
:: SyntaxError (1) -
Psych
:: Visitors :: YAMLTree (1) -
RDoc
:: Context (2) -
RDoc
:: Context :: Section (4) -
RDoc
:: Generator :: JsonIndex (1) -
RDoc
:: Generator :: RI (1) -
RDoc
:: Markup (1) -
RDoc
:: Options (18) -
REXML
:: Declaration (1) -
REXML
:: Document (3) -
REXML
:: Element (1) -
REXML
:: Instruction (2) -
REXML
:: NotationDecl (4) -
REXML
:: ParseException (1) -
REXML
:: XMLDecl (4) -
Rake
:: Application (3) -
Rake
:: InvocationChain (1) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Rake
:: PackageTask (1) -
Rake
:: RDocTask (1) -
Rake
:: Task (1) -
Rake
:: TestTask (1) - Range (1)
- Rational (3)
- Regexp (4)
- Ripper (2)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (12) - SignalException (1)
- Socket (2)
-
Socket
:: Option (3) - String (22)
- StringIO (2)
- StringScanner (3)
- Struct (1)
- Symbol (5)
-
Syslog
:: Logger (1) -
Thread
:: Backtrace :: Location (6) - Time (5)
- UDPSocket (1)
-
URI
:: Generic (1) -
URI
:: LDAP (1) - UnboundMethod (2)
-
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPResponse (10) -
WEBrick
:: HTTPVersion (1) - WIN32OLE (1)
-
YAML
:: DBM (1) -
Zlib
:: Deflate (2) -
Zlib
:: Inflate (1)
モジュール
- Base64 (1)
- Benchmark (2)
-
CGI
:: HtmlExtension (47) -
CGI
:: QueryExtension (32) - Etc (15)
- Exception2MessageMapper (2)
-
File
:: Constants (1) - Forwardable (1)
- Gem (3)
-
Gem
:: InstallUpdateOptions (1) -
Gem
:: UserInteraction (1) - IRB (1)
- JSON (10)
-
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 :: String :: Extend (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kconv (12)
- Kernel (14)
- NKF (2)
-
Net
:: HTTPHeader (1) - ObjectSpace (1)
- OpenSSL (3)
-
OpenSSL
:: Buffering (1) - OpenURI (1)
-
OpenURI
:: Meta (2) -
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (4) - Psych (5)
- RDoc (2)
-
Rake
:: TaskManager (1) - RbConfig (4)
- Readline (4)
-
Socket
:: Constants (1) - Syslog (1)
- URI (3)
-
WEBrick
:: AccessLog (1) -
WEBrick
:: Config (1) -
WEBrick
:: HTTPAuth :: Authenticator (2) -
WEBrick
:: HTTPStatus (1) - Zlib (4)
キーワード
-
$ ERROR _ POSITION (1) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - === (1)
-
BENCHMARK
_ VERSION (1) - CAPTION (2)
-
COMMON
_ LOG _ FORMAT (1) -
CONSTANT
_ MODIFIERS (1) - Context (1)
- Converter (1)
-
DEFAULT
_ CONFIG _ FILE (1) -
DEFAULT
_ VERSION (1) - DEPRECATED (1)
- DESCRIPTION (1)
- DESTDIR (1)
- Extend (2)
-
FORWARDABLE
_ VERSION (1) - Filter (1)
- Float (1)
- HeaderConverters (1)
-
IDNAME
_ IVARS (1) -
INSTRUCTION
_ NAMES (1) - Integer (1)
- LIBDIR (1)
-
LIBYAML
_ VERSION (1) -
NEWS for Ruby 2
. 0 . 0 (1) -
NEWS for Ruby 2
. 4 . 0 (1) -
NEWS for Ruby 2
. 5 . 0 (1) -
NI
_ NUMERICSERV (1) -
NKF
_ VERSION (1) -
NOPRINTING
_ IVARS (1) -
NO
_ INSPECTING _ IVARS (1) - NULL (1)
-
OPENSSL
_ LIBRARY _ VERSION (1) -
OPENSSL
_ VERSION (1) -
RFC822
_ MONTHS (1) -
RSTRING
_ LEN (1) -
RUBY
_ DESCRIPTION (1) -
RUBY
_ ENGINE _ VERSION (1) -
RUBY
_ VERSION (1) - ResponseField (1)
- ResponseInfoField (1)
- Revision (2)
- RubyGemsPackageVersion (1)
- RubyGemsVersion (1)
- Rubyの起動 (1)
-
SC
_ 2 _ VERSION (1) -
SC
_ ASYNCHRONOUS _ IO (1) -
SC
_ CLOCK _ SELECTION (1) -
SC
_ JOB _ CONTROL (1) -
SC
_ MEMORY _ PROTECTION (1) -
SC
_ MONOTONIC _ CLOCK (1) -
SC
_ NPROCESSORS _ CONF (1) -
SC
_ NPROCESSORS _ ONLN (1) -
SC
_ SYNCHRONIZED _ IO (1) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (1) -
SC
_ THREAD _ SAFE _ FUNCTIONS (1) -
SC
_ VERSION (1) -
SC
_ XOPEN _ VERSION (1) -
SEARCH
_ INDEX _ FILE (1) - SPECIAL (1)
-
SYSTEM
_ WIDE _ CONFIG _ FILE (1) - TOPDIR (1)
- VERSION (16)
- Version (3)
-
ZLIB
_ VERSION (1) - [] (4)
-
_ _ inspect _ _ (1) -
_ _ to _ s _ _ (1) -
_ dump (1) - a (2)
-
absolute
_ path (2) - accept (1)
-
accept
_ charset (1) -
accept
_ encoding (1) -
accept
_ language (1) -
add
_ value (1) - alert (1)
-
alert
_ error (1) -
alert
_ warning (1) -
allocation
_ sourcefile (1) -
ap
_ name (1) -
ap
_ name= (1) -
arg
_ config (1) -
array
_ nl (1) -
ascii
_ only? (1) -
asciicompat
_ encoding (2) - ask (2)
-
auth
_ type (1) - autoload (2)
- autoload? (2)
- autorequire (1)
- backtrace (1)
- base (1)
-
base
_ label (2) - bindir (1)
- binread (2)
- blockquote (2)
- body (2)
-
ca
_ file (1) -
ca
_ path (1) -
cache
_ control (1) - canonname (1)
- capitalize (2)
- capitalize! (1)
- cgi (1)
- charset (1)
- checkbox (2)
-
checkbox
_ group (2) - ciphers (1)
- clone (3)
- code (1)
- comment (1)
- compile (1)
-
compile
_ option (1) -
completion
_ append _ character (1) -
completion
_ append _ character= (1) -
completion
_ case _ fold (1) - concat (3)
-
config
_ file _ name (1) - confstr (1)
- connect (1)
-
const
_ defined? (1) -
const
_ get (1) -
const
_ set (1) - content (2)
-
content
_ encoding (1) -
content
_ id (3) -
content
_ length (1) -
content
_ length= (1) -
content
_ type (5) - context (1)
- convert (1)
-
create
_ body (1) -
create
_ ext _ from _ string (1) -
create
_ extension (2) -
create
_ header (1) -
create
_ id (1) - css (1)
- data (1)
- decode64 (1)
-
decode
_ www _ form _ component (1) -
default
_ argv (1) -
default
_ executable (1) -
define
_ singleton _ method (2) - deflate (2)
-
deprecate
_ constant (1) - desc (1)
- description (5)
-
destination
_ encoding _ name (2) -
dir
_ config (1) - disasm (2)
- disassemble (2)
- downcase (2)
- downcase! (1)
-
dsp
_ type (1) - dump (3)
- dup (2)
- email (1)
-
enable
_ config (2) - encode (3)
- encode! (2)
-
encode
_ www _ form _ component (1) - entity (1)
- environment (1)
- error= (1)
-
error
_ bytes (1) -
error
_ char (1) -
error
_ string (1) - executable (1)
- executables (1)
- extensions (2)
-
extra
_ accessor _ flags (1) -
extra
_ rdoc _ files (1) -
fast
_ generate (1) -
fast
_ unparse (1) - fetch (1)
-
file
_ field (2) -
file
_ name (1) - filename (1)
- files (2)
- filter (3)
-
filter
_ backtrace (1) - finish (1)
- form (4)
- from (1)
-
full
_ gem _ path (1) -
full
_ name (1) -
gateway
_ interface (1) - generate (3)
-
generate
_ line (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)
- indent (1)
- indent= (1)
-
insert
_ output (1) - inspect (8)
-
install
_ update _ defaults _ str (1) -
installation
_ path (1) - instance (2)
- investigation (1)
- irb (1)
-
irb
_ name (1) -
irb
_ name= (1) -
irb
_ path (1) - iseuc (1)
- isjis (1)
- iso8601 (1)
- issjis (1)
- isutf8 (1)
-
json
_ creatable? (1) -
json
_ create (1) - kconv (3)
- keys (1)
- label (2)
-
last
_ description (1) -
last
_ response (1) -
last
_ response _ code (1) - lastresp (1)
- lex (1)
-
lib
_ files (1) -
literal
_ concat _ string (1) -
load
_ from _ binary _ extra _ data (1) -
load
_ modules (1) -
loaded
_ from (1) -
long
_ name (1) -
main
_ page (1) -
mark
_ version (1) - markup (1)
-
marshal
_ version (1) -
module
_ function (1) - msg (1)
-
multipart
_ form (4) -
must
_ C _ version (1) - name (8)
- negotiate (1)
- new (9)
- normalize (1)
-
normalize
_ yaml _ input (1) -
object
_ nl (1) -
object
_ nl= (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) - out (1)
- param (1)
- params (1)
- parse (2)
- parse! (2)
-
parse
_ csv (1) - partition (1)
-
password
_ field (2) - path (3)
-
path
_ info (1) -
path
_ translated (1) - permute (2)
- permute! (2)
- platform (1)
- pragma (1)
-
pretty
_ generate (1) -
pretty
_ unparse (1) -
private
_ constant (1) -
program
_ name (1) -
prompt
_ c (1) -
prompt
_ i (1) -
prompt
_ n (1) -
prompt
_ s (1) -
psych
_ to _ yaml (1) - public (1)
-
public
_ constant (1) - putback (2)
-
query
_ string (1) -
radio
_ group (2) -
rake
_ extension (1) - rakefile (1)
-
raw
_ data (3) -
rb
_ check _ convert _ type (1) -
rb
_ compile _ string (1) -
rb
_ eval _ string (1) -
rb
_ eval _ string _ protect (1) -
rb
_ eval _ string _ wrap (1) - rdoc (1)
-
rdoc
_ include (1) - read (1)
-
read
_ body (2) -
read
_ nonblock (4) - reason (2)
-
reason
_ phrase (2) -
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) -
remove
_ const (1) - replacement (1)
- replacement= (1)
-
request
_ method (2) -
require
_ path (1) -
require
_ paths (1) - reset (2)
- responses (1)
-
return
_ format (1) - rpartition (1)
- ruby (1)
-
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 2 feature (1) -
ruby 1
. 8 . 3 feature (1) -
ruby 1
. 8 . 4 feature (1) -
rubygems
_ version (1) -
script
_ name (1) -
scrolling
_ list (2) - section (1)
- sections (1)
- select (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 (2) -
signing
_ key (1) - signm (1)
-
singleton
_ class (1) -
singleton
_ method (1) - source (1)
-
source
_ location (4) - space (1)
- space= (1)
-
space
_ before (1) -
space
_ before= (1) -
ssl
_ version (1) -
stand
_ alone? (2) - standalone (1)
-
static
_ path (1) - status (1)
-
status
_ line (1) -
status
_ string (1) - strftime (1)
- submit (2)
- summary (1)
-
summary
_ indent (1) - swapcase (2)
- swapcase! (1)
- sysconfdir (1)
- system (1)
- tag (1)
- target (1)
- template (1)
-
template
_ dir (1) -
test
_ file (1) -
test
_ files (1) -
test
_ suite _ file (1) - text (1)
-
text
_ field (2) - textarea (2)
- title (2)
- title= (1)
-
to
_ a (2) -
to
_ binary (1) -
to
_ csv (2) -
to
_ der (3) -
to
_ json (22) -
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) - toeuc (1)
- tojis (1)
- tolocale (1)
- tosjis (1)
- toutf16 (1)
- toutf32 (1)
- toutf8 (1)
-
trusted
_ cert _ path (1) -
try
_ convert (2) - union (1)
-
unmatched
_ alias _ lists (1) - unpack (1)
- unparse (1)
- upcase (2)
- upcase! (1)
-
user
_ agent (1) - value (3)
- ver (1)
- verify (1)
- version (8)
- webcvs (1)
-
with
_ config (2) - write (2)
-
write
_ nonblock (2) - xmlschema (1)
- yaml (1)
-
zlib
_ version (1) - zone (2)
- 正規表現 (1)
検索結果
先頭5件
- Zlib
:: Inflate # set _ dictionary(string) -> String - ARGF
. class # read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | Symbol | nil - VALUE rb
_ check _ convert _ type(VALUE val , int type , const char *tname , const char *method) - GetoptLong
# get _ option -> [String , String] - OpenSSL
:: Config # section(sec) -> {String => String}
-
Zlib
:: Inflate # set _ dictionary(string) -> String (18973.0) -
展開に用いる辞書を指定します。string を返します。 このメソッドは Zlib::NeedDict 例外が発生した直後のみ 有効です。詳細は zlib.h を参照して下さい。
展開に用いる辞書を指定します。string を返します。
このメソッドは Zlib::NeedDict 例外が発生した直後のみ
有効です。詳細は zlib.h を参照して下さい。
@param string 展開に用いる辞書を文字列で指定します。
require 'zlib'
def case2(str, dict)
dez = Zlib::Deflate.new
dez.set_dictionary(dict)
comp_str = dez.deflate(str)
comp_str << dez.finish
comp_str.siz... -
ARGF
. class # read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | Symbol | nil (18922.0) -
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。 詳しくは IO#read_nonblock を参照してください。
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。
詳しくは IO#read_nonblock を参照してください。
ARGF.class#read などとは違って複数ファイルを同時に読み込むことはありません。
@param maxlen 読み込む長さの上限を整数で指定します。
@param outbuf 読み込んだデータを格納する String オブジェクトを指定します。
@param exception 読み込み時に Errno::EAGAIN、
Errno::EWOULDBLOCK が発生する代わりに
... -
VALUE rb
_ check _ convert _ type(VALUE val , int type , const char *tname , const char *method) (18919.0) -
val.method を実行してクラス tname のインスタンスを返します。 val がメソッド method を持たなければ nil を返します。
val.method を実行してクラス tname のインスタンスを返します。
val がメソッド method を持たなければ nil を返します。
type は、T_ARRAY, T_STRING などの構造体を表す ID です。
method の結果の型が type でなければ例外 TypeError が発生します。 -
GetoptLong
# get _ option -> [String , String] (18913.0) -
ARGV から、次のオプションの名前と、もしあればその引数の組を取 得します。メソッドは 2 つの値を返し、1 つ目の値がオプション名 (例: --max-size) で、2 つ目がオプションの引数 (例: 20K) です。
ARGV から、次のオプションの名前と、もしあればその引数の組を取
得します。メソッドは 2 つの値を返し、1 つ目の値がオプション名
(例: --max-size) で、2 つ目がオプションの引数 (例: 20K) です。
get と get_option は常にオプション名を正式名
で返します。与えられたオプションが引数を取らないときは、
空の文字列 ('') が optarg にセットされます。オプションが
ARGV に残っていないときは、optname, optarg ともに nil に
セットされます。メソッドから戻る際に、取得したオプションと引数
は自動的に ARGV から取り除... -
OpenSSL
:: Config # section(sec) -> {String => String} (18913.0) -
指定したセクションの設定情報をハッシュで返します。
指定したセクションの設定情報をハッシュで返します。
ハッシュのキーが設定情報のキー、ハッシュの値が対応する情報となります。
section は obsolete です。[] を使ってください。
@param sec セクションを表す文字列 -
Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] (18907.0) -
configure オプション --with-TARGET-dir, --with-TARGET-include, --with-TARGET-lib をユーザが extconf.rb に指定できるようにします。
configure オプション
--with-TARGET-dir,
--with-TARGET-include,
--with-TARGET-lib
をユーザが extconf.rb に指定できるようにします。
--with-TARGET-dir オプションは
システム標準ではない、
ヘッダファイルやライブラリがあるディレクトリをまとめて指定するために使います。
ユーザが extconf.rb に --with-TARGET-dir=PATH を指定したときは
$CFLAGS に "-IPATH/include" を、
$LDFLAGS に "-LPATH/lib" を、
それぞれ追加し... -
Kernel
# enable _ config(config , default) -> bool | String (18907.0) -
configure のオプションを検査します。
configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
... -
Kernel
# with _ config(config , default = nil) -> bool | String (18907.0) -
configure のオプションを検査します。
configure のオプションを検査します。
configure のオプションに --with-<config> が指定された場合は真を返しま
す。--without-<config> が指定された場合は偽を返します。どちらでもない場
合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if with_config("debug")
$defs... -
BasicSocket
# recvmsg _ nonblock(maxmesglen=nil , flags=0 , maxcontrollen=nil , opts={}) -> [String , Addrinfo , Integer , *Socket :: AncillaryData] (18904.0) -
recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。
recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。
ブロッキングの有無以外は BasicSocket#recvmsg と同じです。
詳しくはそちらを参照してください。
@param maxmesglen 受け取るメッセージの最大長
@param flags フラグ
@param maxcontrollen 受け取る補助データの最大長
@param opts ハッシュオプション -
IO
# read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | Symbol | nil (18904.0) -
IO をノンブロッキングモードに設定し、 その後で read(2) システムコールにより 長さ maxlen を上限として読み込み、文字列として返します。 EAGAIN, EINTR などは Errno::EXXX 例外として呼出元に報告されます。
IO をノンブロッキングモードに設定し、
その後で read(2) システムコールにより
長さ maxlen を上限として読み込み、文字列として返します。
EAGAIN, EINTR などは Errno::EXXX 例外として呼出元に報告されます。
発生した例外 がErrno::EAGAIN、 Errno::EWOULDBLOCK である場合は、
その例外オブジェクトに IO::WaitReadable が Object#extend
されます。
なお、バッファが空でない場合は、read_nonblock はバッファから読み込みます。この場合、read(2) システムコールは呼ばれません... -
Kernel
# arg _ config(config , default) { . . . } -> object | String | true | nil (18904.0) -
configure オプション --config の値を返します。
configure オプション --config の値を返します。
@param config オプションを文字列で指定します。
@param default 引数 config で指定したオプションのデフォルト値を指定します。
@return オプションが指定されてた場合は true を、指定されなかった場合は
nil を返します。
引数 default、あるいはブロックを指定すると、オプションが指定さ
れていない場合に引数 default の値かブロックの評価結果を返します
(両方指定した場合はブロックが優先されます)... -
long RSTRING
_ LEN(RString str) (18901.0) -
引数 str の表す文字列のバイト数を返します。
引数 str の表す文字列のバイト数を返します。
@param str RString 構造体を指定します。
@see RSTRING_LENINT -
Readline
. completion _ append _ character=(string) (18706.0) -
ユーザの入力の補完が完了した場合に、最後に付加する文字 string を指定します。
ユーザの入力の補完が完了した場合に、最後に付加する文字 string を指定します。
@param string 1文字を指定します。
@raise NotImplementedError サポートしていない環境で発生します。
半角スペース「" "」などの単語を区切る文字を指定すれば、
連続して入力する際に便利です。
require 'readline'
Readline.readline("> ", true)
Readline.completion_append_character = " "
> /var/li
ここで補完(TABキーを押す)を行う。
>... -
VALUE rb
_ eval _ string _ wrap(const char *str , int *state) (18649.0) -
rb_eval_string_protect と同じですが,スクリプトの評価を 無名のモジュールのもとで行います。
rb_eval_string_protect と同じですが,スクリプトの評価を
無名のモジュールのもとで行います。 -
DBM
:: VERSION -> String (18622.0) -
libdbm のバージョンを表す文字列です。
libdbm のバージョンを表す文字列です。
DB_VERSION_STRING という定数が C 言語レベルで定義されていない場合は
"unknown" になります。 -
Gem
:: RubyGemsPackageVersion -> String (18607.0) -
このライブラリのバージョンを表す文字列。
このライブラリのバージョンを表す文字列。 -
Gem
:: RubyGemsVersion -> String (18607.0) -
このライブラリのバージョンを表す文字列。
このライブラリのバージョンを表す文字列。 -
Gem
:: Version # version -> String (18607.0) -
バージョン情報を文字列として返します。
バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//} -
Net
:: FTP # last _ response _ code -> String (18607.0) -
サーバからの最後の応答のコードを文字列で返します。
サーバからの最後の応答のコードを文字列で返します。
例えばログイン(Net::FTP#login)に成功した場合には
"230" を返します。
数字の意味は 959 参照してください。
@see Net::FTP#last_response -
Net
:: IMAP :: ContentDisposition # param -> { String => String } | nil (18607.0) -
Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。
Content-Disposition フィールドのパラメータをハッシュテーブルで
返します。
ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"
* "SIZE" -
REXML
:: XMLDecl # stand _ alone? -> String | nil (18607.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。 -
REXML
:: XMLDecl # standalone -> String | nil (18607.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。 -
ACL
:: VERSION -> [String] (18604.0) -
ACL のバージョン。
ACL のバージョン。 -
Addrinfo
# canonname -> String|nil (18604.0) -
カノニカル名を文字列で返します。
カノニカル名を文字列で返します。
カノニカル名が存在しない場合には nil を返します。
カノニカル名は Addrinfo.getaddrinfo に Socket::AI_CANONINAME
を指定した場合にセットされます。
require 'socket'
list = Addrinfo.getaddrinfo("www.ruby-lang.org", 80, :INET, :STREAM, nil, Socket::AI_CANONNAME)
p list[0] #=> #<Addrinfo: 221.186.184.68:80 TCP carbon.ruby-la... -
BasicSocket
# recv _ nonblock(maxlen , flags = 0) -> String (18604.0) -
ソケットをノンブロッキングモードに設定した後、 recvfrom(2) でソケットからデータを受け取ります。
ソケットをノンブロッキングモードに設定した後、
recvfrom(2) でソケットからデータを受け取ります。
引数、返り値は BasicSocket#recv と同じです。
recvfrom(2) がエラーになった場合、
EAGAIN, EINTR を含め例外 Errno::EXXX が発生します。
@param maxlen 受け取る文字列の最大の長さを指定します。
@param flags recv(2) を参照してください。
@raise IOError
@raise Errno::EXXX recvfrom(2) がエラーになった場合などに発生します。 -
Benchmark
:: BENCHMARK _ VERSION -> String (18604.0) -
benchmark ライブラリのバージョンを表します。
benchmark ライブラリのバージョンを表します。 -
Benchmark
:: CAPTION -> String (18604.0) -
Benchmark.#bm の内部などで使用されます。
Benchmark.#bm の内部などで使用されます。
実際の定義は Benchmark::Tms::CAPTION でされています。
@see Benchmark::Tms::CAPTION -
Benchmark
:: Tms :: CAPTION -> String (18604.0) -
Benchmark.#bm の内部などで使用されます。
Benchmark.#bm の内部などで使用されます。
@see Benchmark::CAPTION -
BigDecimal
# to _ json(*args) -> String (18604.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/bigdecimal'
BigDecimal('0.123456789123456789').to_json # => "{\"json_class\":\"BigDecimal\",\"b\":\"36:0.123456789123456789e0\"}"
//... -
BigDecimal
:: VERSION -> String (18604.0) -
bigdecimal ライブラリのバージョンを文字列で返します。
bigdecimal ライブラリのバージョンを文字列で返します。 -
Binding
# source _ location -> [String , Integer] (18604.0) -
self の Ruby のソースファイル名と行番号を返します。
self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//} -
CGI
:: RFC822 _ MONTHS -> [String] (18604.0) -
822 で定義されている月名の略称を返します。
822 で定義されている月名の略称を返します。
@see 822 -
CSV
:: VERSION -> String (18604.0) -
ライブラリのバージョンを表す文字列です。
ライブラリのバージョンを表す文字列です。 -
Complex
# to _ json(*args) -> String (18604.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/complex'
Complex(2, 3).to_json # => "{\"json_class\":\"Complex\",\"r\":2,\"i\":3}"
//}
@see JSON::Generator::GeneratorMethods::Hash... -
DRb
:: DRbRemoteError # reason -> String (18604.0) -
wrapされている例外クラスの名前を返します。
wrapされている例外クラスの名前を返します。 -
Date
# 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"
Date.today.to_json
# => "{\"json_class\":\"Date\",\"y\":2018,\"m\":12... -
DateTime
# 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"
DateTime.now.to_json
# => "{\"json_class\":\"DateTime\",\"y\":2018,\"... -
DateTime
# zone -> String (18604.0) -
タイムゾーンを返します。
タイムゾーンを返します。
これは、正確には時差をあらわす文字列です。 -
ERB
. version -> String (18604.0) -
erb.rbのリビジョン情報を返します。
erb.rbのリビジョン情報を返します。 -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (18604.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding -
Etc
. # confstr(name) -> String | nil (18604.0) -
confstr(3) で取得したシステム設定変数の値を返します。
confstr(3) で取得したシステム設定変数の値を返します。
@param name Etc モジュールの CS_ で始まる定数のいずれかを指定します。
引数 name に対応する設定が行われていない状態の場合は nil を返します。
(confstr(3) が -1 を返し、errno が設定されていない場合)
//emlist[][ruby]{
require "etc"
Etc.confstr(Etc::CS_PATH) # => "/bin:/usr/bin"
# GNU/Linux
Etc.confstr(Etc::CS_GNU_LIBC_VERSION) # => "... -
Etc
. # sysconfdir -> String | nil (18604.0) -
システムの設定ディレクトリを返します。
システムの設定ディレクトリを返します。
//emlist[][ruby]{
require 'etc'
p Etc.sysconfdir # => "/etc"
//}
主に "/etc" を返しますが、Ruby をソースからビルドした場合は異なるディレ
クトリを返す場合があります。例えば、Ruby を /usr/local にインストールし
た場合は、"/usr/local/etc" を返します。
Windows では常にシステムで提供されたディレクトリを返します。 -
Etc
:: SC _ MONOTONIC _ CLOCK -> Integer (18604.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。 -
Forwardable
:: FORWARDABLE _ VERSION -> String (18604.0) -
forwardable ライブラリのバージョンを返します。
forwardable ライブラリのバージョンを返します。 -
GDBM
:: VERSION -> String (18604.0) -
libgdbm のバージョン情報の文字列です。
libgdbm のバージョン情報の文字列です。 -
Gem
. # marshal _ version -> String (18604.0) -
Marshal のバージョンを表す文字列を返します。
Marshal のバージョンを表す文字列を返します。 -
Gem
:: Command # description -> String (18604.0) -
このメソッドはサブクラスで再定義されます。 コマンドが実行することを説明する文字列を返します。
このメソッドはサブクラスで再定義されます。
コマンドが実行することを説明する文字列を返します。 -
Gem
:: Command # get _ one _ gem _ name -> String (18604.0) -
コマンドラインで与えられた Gem の名前を一つ取得して返します。
コマンドラインで与えられた Gem の名前を一つ取得して返します。
@raise Gem::CommandLineError コマンドライン引数から Gem の名前を一つだけ取得できない場合に発生します。 -
Gem
:: Platform # version -> String (18604.0) -
プラットフォームのバージョンを返します。
プラットフォームのバージョンを返します。 -
IPAddr
# hton -> String (18604.0) -
ネットワークオーダーのバイト列に変換します。
ネットワークオーダーのバイト列に変換します。 -
IRB
. version -> String (18604.0) -
IRB のバージョンを文字列で返します。
IRB のバージョンを文字列で返します。
~/.irbrc などの設定ファイル内で IRB.conf[:VERSION] を設定していた場合は
任意のバージョンを返すように設定できます。 -
Kernel
$ $ ERROR _ POSITION -> [String] | nil (18604.0) -
$@ の別名
$@ の別名
require "English"
class SomethingError < StandardError; end
begin
raise SomethingError
rescue
p $ERROR_POSITION #=> ["sample.rb:5"]
end -
Logger
:: VERSION -> String (18604.0) -
このライブラリのバージョンを表す文字列。
このライブラリのバージョンを表す文字列。 -
Method
# source _ location -> [String , Integer] | nil (18604.0) -
ソースコードのファイル名と行番号を配列で返します。
ソースコードのファイル名と行番号を配列で返します。
その手続オブジェクトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
@see Proc#source_location
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end
# ----- end of /tmp/foo.rb ----
require '/tmp/foo'
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.source... -
NKF
:: NKF _ VERSION -> String (18604.0) -
nkf 自体のバージョンを表す文字列です。
nkf 自体のバージョンを表す文字列です。 -
NKF
:: VERSION -> String (18604.0) -
"#{NKF::NKF_VERSION} (#{NKF_RELEASE_DATE})" と あらわされる文字列です。
"#{NKF::NKF_VERSION} (#{NKF_RELEASE_DATE})" と
あらわされる文字列です。 -
Net
:: FTP # last _ response -> String (18604.0) -
サーバからの最後の応答を文字列で返します。
サーバからの最後の応答を文字列で返します。
例えばログイン(Net::FTP#login)に成功した場合には
"230 Login successful.\n" を返します。
@see Net::FTP#last_response_code -
Net
:: HTTP # ssl _ version -> String | Symbol | nil (18604.0) -
利用するプロトコルの種類を返します。
利用するプロトコルの種類を返します。
@see Net::HTTP#ssl_version= -
Net
:: HTTPHeader # content _ type -> String|nil (18604.0) -
"text/html" のような Content-Type を表す 文字列を返します。
"text/html" のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/for... -
Net
:: IMAP # responses -> { String => [object] } (18604.0) -
サーバから送られてきた untagged な応答の記録を返します。
サーバから送られてきた untagged な応答の記録を返します。
untagged な応答は種類ごとに記録されます。
応答の種類には "FLAGS", "OK", "UIDVALIDITY", "EXISTS" などがあり、
この文字列がハッシュテーブルのキーとなります。
そして各種類ごとに配列が用意され、untagged な応答を受信するたびに
その配列の末尾にその内容が記録されます。
例:
imap.select("inbox")
p imap.responses["EXISTS"].last
#=> 2
p imap.responses["UIDVALIDITY"... -
Net
:: IMAP :: BodyTypeBasic # content _ id -> String | nil (18604.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeBasic # description -> String | nil (18604.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # content _ id -> String | nil (18604.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # description -> String | nil (18604.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (18604.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # description -> String | nil (18604.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: POP3 :: Revision -> String (18604.0) -
ライブラリ(ファイル)のリビジョンです。 使わないでください。
ライブラリ(ファイル)のリビジョンです。
使わないでください。 -
Net
:: SMTP :: Revision -> String (18604.0) -
ファイルのリビジョンです。使わないでください。
ファイルのリビジョンです。使わないでください。 -
Object
:: RUBY _ DESCRIPTION -> String (18604.0) -
Ruby の詳細を表す文字列。
Ruby の詳細を表す文字列。
ruby -v で表示される内容が格納されています。 -
Object
:: RUBY _ ENGINE _ VERSION -> String (18604.0) -
Ruby処理系実装のバージョンを表す文字列。
Ruby処理系実装のバージョンを表す文字列。 -
Object
:: RUBY _ VERSION -> String (18604.0) -
Ruby のバージョンを表す文字列。
Ruby のバージョンを表す文字列。
Ruby のバージョンは、major.minor.teeny という形式です。 -
ObjectSpace
. # allocation _ sourcefile(object) -> String (18604.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
:: Buffering # read _ nonblock(maxlen , buf) -> String (18604.0) -
通信路から maxlen バイトを上限としてデータを読み込み、 文字列として返します。
通信路から maxlen バイトを上限としてデータを読み込み、
文字列として返します。
即座に得られるデータが 1byte でも存在すればブロックしません。
内部バッファが空でない場合はバッファのデータを返します。
即座に得られるデータが存在しないときには例外が発生します。
例外が発生した場合、内部のソケットが利用可能になってから
再びこのメソッドを呼んでください。
基本的には IO#read_nonblock と同様です。しかし以下のような
違いもあります。
このメソッドはソケットが書き込み不可能(IO::WaitWritable)という理由で
例外を発生させる可能性があります。暗号... -
OpenSSL
:: OPENSSL _ LIBRARY _ VERSION -> String (18604.0) -
実行時に使われている OpenSSL 本体のバージョンを表した文字列です。
実行時に使われている OpenSSL 本体のバージョンを表した文字列です。 -
OpenSSL
:: OPENSSL _ VERSION -> String (18604.0) -
ビルド時に使われた OpenSSL 本体のバージョンを表した文字列です。
ビルド時に使われた OpenSSL 本体のバージョンを表した文字列です。 -
OpenSSL
:: VERSION -> String (18604.0) -
Ruby/OpenSSL のバージョンです。
Ruby/OpenSSL のバージョンです。 -
OpenStruct
# 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 -
OpenURI
:: Meta # content _ encoding -> [String] (18604.0) -
対象となるリソースの Content-Encoding を文字列の配列として返します。 Content-Encoding ヘッダがない場合は、空の配列を返します。
対象となるリソースの Content-Encoding を文字列の配列として返します。
Content-Encoding ヘッダがない場合は、空の配列を返します。
例:
//emlist[例][ruby]{
require 'open-uri'
open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]
}
//} -
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
. to _ json(o) -> String (18604.0) -
Ruby のオブジェクト o を JSON の文字列に変換します。
Ruby のオブジェクト o を JSON の文字列に変換します。
@param o 変換対象となるオブジェクト -
Psych
:: LIBYAML _ VERSION -> String (18604.0) -
libyaml のバージョン。
libyaml のバージョン。 -
Psych
:: SyntaxError # context -> String (18604.0) -
エラーが生じたコンテキストを文字列で返します。
エラーが生じたコンテキストを文字列で返します。 -
Psych
:: VERSION -> String (18604.0) -
Psych のバージョン。
Psych のバージョン。 -
RDoc
:: CONSTANT _ MODIFIERS -> [String] (18604.0) -
ライブラリの内部で使用します。
ライブラリの内部で使用します。 -
RDoc
:: Generator :: RI :: DESCRIPTION -> String (18604.0) -
このジェネレータの説明を表す文字列です。
このジェネレータの説明を表す文字列です。 -
RDoc
:: Markup # content -> String (18604.0) -
変換する文字列を返します。
変換する文字列を返します。
rdoc ライブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。
変換のために加工したオブジェクトを改行で連結したものを返すため、変換前
の文字列と結果が異なる事があります。
@see SM::SimpleMarkup#convert -
RDoc
:: VERSION -> String (18604.0) -
RDoc のバージョンを表す文字列を返します。
RDoc のバージョンを表す文字列を返します。 -
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 # version -> String (18604.0) -
XML文書のバージョンを文字列で返します。
XML文書のバージョンを文字列で返します。 -
REXML
:: XMLDecl :: DEFAULT _ VERSION -> String (18604.0) -
REXML::XMLDecl.new や REXML::XMLDecl.default で の使われるデフォルトのXMLバージョン。
REXML::XMLDecl.new や REXML::XMLDecl.default で
の使われるデフォルトのXMLバージョン。 -
Rake
:: PackageTask # version -> String (18604.0) -
作成するパッケージのバージョンを表す文字列を返します。
作成するパッケージのバージョンを表す文字列を返します。 -
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]}"
//... -
Readline
. completion _ append _ character -> String (18604.0) -
ユーザの入力の補完が完了した場合に、最後に付加する文字を取得します。
ユーザの入力の補完が完了した場合に、最後に付加する文字を取得します。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.completion_append_character= -
Readline
:: VERSION -> String (18604.0) -
Readlineモジュールが使用している GNU Readline や libedit のバージョンを 示す文字列です。
Readlineモジュールが使用している GNU Readline や libedit のバージョンを
示す文字列です。 -
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}\"}"... -
Ripper
:: Version -> String (18604.0) -
ripper のバージョンを文字列で返します。
ripper のバージョンを文字列で返します。