別のキーワード
ライブラリ
- ビルトイン (157)
- benchmark (3)
- bigdecimal (5)
-
cgi
/ session (1) - coverage (2)
- csv (7)
- date (9)
- dbm (3)
- debug (1)
- delegate (1)
- digest (4)
-
digest
/ sha2 (1) - drb (8)
-
drb
/ extserv (1) -
drb
/ extservm (3) -
drb
/ gw (1) -
drb
/ timeridconv (1) - erb (2)
- fiber (1)
- fiddle (5)
- fileutils (1)
- forwardable (2)
- gdbm (3)
- irb (7)
-
irb
/ cmd / nop (2) -
irb
/ context (1) -
irb
/ ext / save-history (1) -
irb
/ extend-command (6) -
irb
/ frame (3) -
irb
/ help (1) -
irb
/ input-method (4) -
irb
/ inspector (3) -
irb
/ magic-file (3) -
irb
/ xmp (1) - json (2)
-
json
/ add / bigdecimal (1) -
json
/ add / symbol (1) - logger (1)
- matrix (6)
-
mutex
_ m (1) -
net
/ ftp (2) -
net
/ http (3) -
net
/ imap (2) -
net
/ pop (4) -
net
/ smtp (2) - open-uri (1)
- openssl (59)
- optparse (3)
- ostruct (1)
- pathname (2)
- pp (4)
- prettyprint (2)
- prime (6)
- psych (19)
- pty (1)
- rake (9)
- rbconfig (2)
-
rdoc
/ code _ object (1) -
rdoc
/ markdown (1) -
rdoc
/ markup (1) -
rdoc
/ markup / to _ bs (1) -
rdoc
/ parser (2) -
rdoc
/ parser / c (1) -
rdoc
/ parser / ruby (1) -
rdoc
/ parser / simple (1) - readline (9)
- resolv (4)
-
rexml
/ document (8) -
rinda
/ rinda (1) -
ripper
/ lexer (1) -
ripper
/ sexp (2) - rss (1)
- rubygems (1)
-
rubygems
/ builder (1) -
rubygems
/ command (2) -
rubygems
/ defaults (2) -
rubygems
/ ext / builder (4) -
rubygems
/ ext / configure _ builder (1) -
rubygems
/ ext / ext _ conf _ builder (1) -
rubygems
/ ext / rake _ builder (1) -
rubygems
/ format (1) -
rubygems
/ gem _ openssl (2) -
rubygems
/ installer (2) -
rubygems
/ old _ format (1) -
rubygems
/ package / tar _ writer (1) -
rubygems
/ platform (1) -
rubygems
/ requirement (1) -
rubygems
/ security (2) -
rubygems
/ specification (11) -
rubygems
/ user _ interaction (1) -
rubygems
/ version (1) - sdbm (3)
- securerandom (5)
- singleton (1)
- socket (22)
- stringio (1)
-
syslog
/ logger (1) - tempfile (5)
- tmpdir (2)
- tracer (13)
- tsort (8)
- uri (20)
-
webrick
/ cgi (1) -
webrick
/ httpauth / basicauth (2) -
webrick
/ httpauth / digestauth (2) -
webrick
/ httpauth / htdigest (1) -
webrick
/ httpauth / htgroup (1) -
webrick
/ httpauth / htpasswd (1) -
webrick
/ httpproxy (3) -
webrick
/ httprequest (1) -
webrick
/ httpresponse (1) -
webrick
/ httpserver (2) -
webrick
/ httpservlet / abstract (2) -
webrick
/ httpservlet / cgihandler (1) -
webrick
/ httpservlet / erbhandler (1) -
webrick
/ httpservlet / filehandler (4) -
webrick
/ httpservlet / prochandler (1) -
webrick
/ httpstatus (1) -
webrick
/ httputils (1) -
webrick
/ httpversion (2) -
webrick
/ log (1) -
webrick
/ ssl (1) -
win32
/ registry (6) - win32ole (7)
- zlib (18)
クラス
- Array (4)
- BasicSocket (3)
-
Benchmark
:: Job (1) -
Benchmark
:: Report (1) -
Benchmark
:: Tms (1) - BigDecimal (6)
-
CGI
:: Session (1) - CSV (6)
-
CSV
:: Table (1) - Class (2)
- Coverage (2)
- DBM (3)
-
DRb
:: DRbObject (1) -
DRb
:: DRbServer (7) -
DRb
:: ExtServ (1) -
DRb
:: ExtServManager (3) -
DRb
:: GW (1) -
DRb
:: TimerIdConv (1) - Date (9)
-
Digest
:: Base (4) -
Digest
:: SHA2 (1) - Dir (12)
- ERB (2)
- Encoding (1)
- Enumerator (1)
-
Enumerator
:: Lazy (1) - Exception (1)
- Fiber (3)
-
Fiddle
:: Closure (1) -
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Function (1) -
Fiddle
:: Handle (2) - File (35)
- GDBM (3)
-
Gem
:: Builder (1) -
Gem
:: Command (2) -
Gem
:: Ext :: Builder (4) -
Gem
:: Ext :: ConfigureBuilder (1) -
Gem
:: Ext :: ExtConfBuilder (1) -
Gem
:: Ext :: RakeBuilder (1) -
Gem
:: Format (1) -
Gem
:: Installer (2) -
Gem
:: OldFormat (1) -
Gem
:: Package :: TarWriter :: BoundedStream (1) -
Gem
:: Platform (1) -
Gem
:: Requirement (1) -
Gem
:: Specification (11) -
Gem
:: StreamUI :: VerboseProgressReporter (1) -
Gem
:: Version (1) - Hash (4)
- IO (22)
-
IRB
:: Context (1) -
IRB
:: ExtendCommand :: Nop (2) -
IRB
:: FileInputMethod (1) -
IRB
:: Frame (3) -
IRB
:: InputMethod (1) -
IRB
:: Inspector (2) -
IRB
:: ReadlineInputMethod (1) -
IRB
:: StdioInputMethod (1) - Integer (2)
- Logger (1)
- Matrix (4)
- Module (2)
-
Net
:: FTP (2) -
Net
:: HTTP (2) -
Net
:: HTTPResponse (1) -
Net
:: IMAP (2) -
Net
:: POP3 (4) -
Net
:: SMTP (2) - Object (2)
-
OpenSSL
:: ASN1 :: BMPString (2) -
OpenSSL
:: ASN1 :: BitString (4) -
OpenSSL
:: ASN1 :: Boolean (2) -
OpenSSL
:: ASN1 :: Enumerated (2) -
OpenSSL
:: ASN1 :: ObjectId (3) -
OpenSSL
:: ASN1 :: PrintableString (2) -
OpenSSL
:: BN (8) -
OpenSSL
:: Cipher :: AES (1) -
OpenSSL
:: Cipher :: BF (1) -
OpenSSL
:: Cipher :: RC2 (1) -
OpenSSL
:: Cipher :: RC4 (1) -
OpenSSL
:: Engine (1) -
OpenSSL
:: Netscape :: SPKI (1) -
OpenSSL
:: OCSP :: BasicResponse (1) -
OpenSSL
:: OCSP :: CertificateId (1) -
OpenSSL
:: OCSP :: Response (1) -
OpenSSL
:: PKCS12 (1) -
OpenSSL
:: PKCS7 (2) -
OpenSSL
:: PKey :: DH (1) -
OpenSSL
:: PKey :: DSA (2) -
OpenSSL
:: PKey :: EC (2) -
OpenSSL
:: PKey :: EC :: Group (2) -
OpenSSL
:: PKey :: EC :: Point (1) -
OpenSSL
:: PKey :: RSA (2) -
OpenSSL
:: SSL :: Session (1) -
OpenSSL
:: X509 :: Attribute (2) -
OpenSSL
:: X509 :: CRL (1) -
OpenSSL
:: X509 :: Certificate (1) -
OpenSSL
:: X509 :: Extension (2) -
OpenSSL
:: X509 :: ExtensionFactory (1) -
OpenSSL
:: X509 :: Name (5) -
OpenSSL
:: X509 :: Request (1) - OpenStruct (1)
- OptionParser (2)
-
OptionParser
:: ParseError (1) - PP (4)
- Pathname (2)
- PrettyPrint (2)
- Prime (3)
-
Prime
:: PseudoPrimeGenerator (1) -
Psych
:: Nodes :: Mapping (1) -
Psych
:: Nodes :: Sequence (1) -
Psych
:: TreeBuilder (1) -
Psych
:: Visitors :: YAMLTree (1) -
RDoc
:: CodeObject (1) -
RDoc
:: Markdown (1) -
RDoc
:: Markup (1) -
RDoc
:: Markup :: ToBs (1) -
RDoc
:: Parser (2) -
RDoc
:: Parser :: C (1) -
RDoc
:: Parser :: Ruby (1) -
RDoc
:: Parser :: Simple (1) -
REXML
:: Attribute (2) -
REXML
:: Attributes (1) -
REXML
:: Entity (1) -
REXML
:: NotationDecl (1) -
REXML
:: XPath (3) -
Rake
:: FileList (1) -
Rake
:: InvocationChain (2) -
Rake
:: Task (1) - Random (2)
- Regexp (4)
-
Resolv
:: DNS (1) -
Resolv
:: DNS :: Name (1) -
Resolv
:: DNS :: Resource :: IN :: WKS (1) -
Resolv
:: DNS :: Resource :: MINFO (1) -
Rinda
:: DRbObjectTemplate (1) - Ripper (3)
-
RubyVM
:: InstructionSequence (10) - SDBM (3)
- SignalException (2)
- SimpleDelegator (1)
- Socket (11)
-
Socket
:: Option (1) - String (2)
- StringIO (1)
- Struct (2)
- Symbol (2)
-
Syslog
:: Logger (1) - SystemCallError (1)
- TCPSocket (1)
- Tempfile (5)
- Thread (9)
-
Thread
:: ConditionVariable (1) - TracePoint (3)
- Tracer (14)
- UNIXServer (2)
- UNIXSocket (4)
-
URI
:: FTP (2) -
URI
:: Generic (6) -
URI
:: HTTP (2) -
URI
:: LDAP (2) -
URI
:: MailTo (2) - Vector (2)
-
WEBrick
:: BasicLog (1) -
WEBrick
:: CGI (1) -
WEBrick
:: Cookie (4) -
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPAuth :: BasicAuth (2) -
WEBrick
:: HTTPAuth :: DigestAuth (2) -
WEBrick
:: HTTPAuth :: Htdigest (1) -
WEBrick
:: HTTPAuth :: Htgroup (1) -
WEBrick
:: HTTPAuth :: Htpasswd (1) -
WEBrick
:: HTTPProxyServer (1) -
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPResponse (1) -
WEBrick
:: HTTPServer (1) -
WEBrick
:: HTTPServer :: MountTable (1) -
WEBrick
:: HTTPServlet :: AbstractServlet (2) -
WEBrick
:: HTTPServlet :: CGIHandler (1) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (1) -
WEBrick
:: HTTPServlet :: ERBHandler (1) -
WEBrick
:: HTTPServlet :: FileHandler (3) -
WEBrick
:: HTTPServlet :: ProcHandler (1) -
WEBrick
:: HTTPUtils :: FormData (1) -
WEBrick
:: HTTPVersion (2) - WIN32OLE (1)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ TYPE (3) -
WIN32OLE
_ TYPELIB (2) -
Win32
:: Registry (6) - XMP (1)
-
Zlib
:: Deflate (2) -
Zlib
:: GzipFile (3) -
Zlib
:: GzipReader (5) -
Zlib
:: GzipWriter (5) -
Zlib
:: Inflate (2) -
Zlib
:: ZStream (1)
モジュール
- FileUtils (1)
- Forwardable (2)
- GC (6)
-
GC
:: Profiler (3) - Gem (4)
-
Gem
:: QuickLoader (1) -
Gem
:: Security (2) - IRB (9)
-
IRB
:: ContextExtender (2) -
IRB
:: ExtendCommandBundle (4) -
IRB
:: HistorySavingAbility (1) - JSON (2)
-
Mutex
_ m (1) - PTY (1)
- Process (2)
- Psych (14)
-
RSS
:: Maker (1) - Rake (2)
- RakeFileUtils (3)
- RbConfig (2)
- Readline (8)
-
RubyVM
:: AbstractSyntaxTree (3) -
RubyVM
:: MJIT (3) - SecureRandom (5)
- Singleton (1)
- TSort (8)
- URI (7)
-
WEBrick
:: HTTPStatus (1) - Warning (1)
オブジェクト
- ENV (9)
-
IRB
:: MagicFile (3) -
Readline
:: HISTORY (1) -
WEBrick
:: NullReader (2) - main (7)
キーワード
- === (1)
- CurrentContext (1)
- DEBUG (1)
- DEBUG= (1)
-
ENCODING
_ SPEC _ RE (1) - Inspector (1)
- [] (6)
-
_ load (1) -
_ strptime (1) - abort (2)
-
abort
_ on _ exception (1) -
abort
_ on _ exception= (1) -
absolute
_ path (1) -
absolute
_ path? (1) -
add
_ filter (1) -
add
_ handler (1) -
alias
_ extension (1) -
all
_ symbols (1) - append (1)
- application (1)
- application= (1)
-
array
_ attribute (1) -
array
_ attributes (1) - attribute (1)
-
attribute
_ alias _ singular (1) -
attribute
_ defaults (1) -
attribute
_ names (1) - attributes (1)
- base64 (1)
- basename (1)
-
basic
_ quote _ characters (1) -
basic
_ quote _ characters= (1) -
basic
_ word _ break _ characters (1) -
basic
_ word _ break _ characters= (1) - basis (1)
- binread (1)
- binwrite (1)
- birthtime (1)
- blockdev? (1)
-
body
_ permitted? (1) - bool (1)
- bottom (1)
- build (15)
- build2 (2)
-
build
_ args (1) -
build
_ args= (1) -
build
_ cert (1) -
build
_ self _ signed _ cert (1) -
builtin
_ curves (1) -
by
_ id (1) - bytes (1)
- callback (1)
- chardev? (1)
- chdir (2)
-
class
_ name (1) - clone (1)
- combine (2)
- command (1)
- command= (1)
- compatible? (1)
- compile (1)
-
compile
_ file (1) -
compile
_ option (1) -
compile
_ option= (1) -
completer
_ word _ break _ characters (1) -
completer
_ word _ break _ characters= (1) -
completion
_ case _ fold (1) -
completion
_ case _ fold= (1) - component (1)
- conf (1)
- constants (1)
- convert (1)
- correct? (1)
- create (5)
-
create
_ id (1) - current (1)
- debug (2)
- debug= (2)
-
decode
_ www _ form (1) -
decode
_ www _ form _ component (1) -
def
_ extend _ command (2) -
def
_ inspector (1) -
default
_ acl (1) -
default
_ argc _ limit (1) -
default
_ bindir (1) -
default
_ id _ conv (1) -
default
_ load _ limit (1) -
default
_ passive (1) -
default
_ submission _ port (1) -
default
_ value (1) -
define
_ method (2) - deflate (1)
- digest (1)
- directory? (1)
- disable (2)
-
disable
_ ssl (1) - disasm (1)
- disassemble (1)
-
display
_ c _ call (1) -
display
_ c _ call? (1) -
display
_ process _ id (1) -
display
_ process _ id? (1) -
display
_ thread _ id (1) -
display
_ thread _ id? (1) -
do
_ not _ reverse _ lookup (1) -
do
_ not _ reverse _ lookup= (1) -
double
_ fig (1) - dump (2)
-
dump
_ stream (1) - each (3)
-
each
_ prime (2) -
each
_ strongly _ connected _ component (2) -
each
_ strongly _ connected _ component _ from (2) - empty? (4)
- enable (2)
-
enable
_ ssl (1) - enabled? (2)
-
encode
_ www _ form (1) -
encode
_ www _ form _ component (1) -
ensure
_ ssl _ available (1) - exclusive (1)
- executable? (1)
-
executable
_ real? (1) - execute (1)
- exist? (2)
- exists? (2)
-
extend
_ object (2) - extended (1)
- file (1)
- file? (1)
-
filter
_ backtrace (1) - first (1)
- fnmatch (1)
- fnmatch? (1)
-
for
_ fd (2) - format (1)
-
from
_ file _ by _ path (2) -
generate
_ prime (1) -
get
_ instance (1) - gethostbyaddr (1)
- gethostbyname (2)
- gets (1)
- getservbyname (1)
- getservbyport (1)
- glob (4)
-
gregorian
_ leap? (1) - grpowned? (1)
-
handle
_ interrupt (1) -
has
_ key? (1) -
has
_ value? (1) -
have
_ option? (1) - hexdigest (1)
-
home
_ install _ warning (1) - identical? (1)
- include? (1)
- independent? (1)
- inflate (1)
-
install
_ extend _ commands (2) - instance (2)
-
irb
_ abort (1) -
irb
_ at _ exit (1) -
irb
_ exit (1) -
irb
_ original _ method _ name (1) - join (2)
-
json
_ create (2) -
julian
_ leap? (1) - key? (1)
-
keys
_ with _ inspector (1) -
last
_ match (2) -
latest
_ gc _ info (1) - leap? (1)
- lex (1)
-
libyaml
_ version (1) - limit (1)
-
line
_ stub (1) - load (2)
-
load
_ file (1) -
load
_ from _ binary (1) -
load
_ from _ binary _ extra _ data (1) -
load
_ full _ rubygems _ library (1) -
load
_ stream (2) - make (2)
-
make
_ passwd (2) - match (2)
- matches? (1)
- member? (1)
- members (1)
- mktmpdir (2)
- mode (2)
- new (154)
-
new
_ with _ uri (1) -
nowrite
_ flag (1) - of (2)
-
ole
_ classes (1) -
ole
_ show _ help (1) - on (2)
- open (31)
- owned? (1)
- pair (1)
- parse (6)
-
parse
_ file (1) -
parse
_ openssl (1) -
parse
_ rfc2253 (1) -
parse
_ stream (2) -
parser
_ for (1) -
path
_ warning (1) - pause (1)
-
pending
_ interrupt? (1) - pipe (8)
- pipe? (1)
- popen (7)
- pp (1)
- prime? (1)
-
print
_ usage (1) - private (1)
-
proxy
_ class? (1) -
pseudo
_ rand (1) -
pseudo
_ rand _ range (1) - public (4)
- rand (1)
-
rand
_ range (1) -
random
_ bytes (1) -
random
_ number (1) - read (2)
-
read
_ smime (1) - readable? (1)
-
readable
_ real? (1) - readlines (1)
- realdirpath (1)
- realpath (1)
- redirector (1)
- register (1)
-
remove
_ handler (1) -
report
_ on _ exception (1) -
required
_ attribute (1) -
required
_ attribute? (1) -
required
_ attributes (1) - resume (1)
- ruby (1)
-
ruby2
_ keywords _ hash? (1) -
ruby
_ engine (1) - run (1)
- running? (1)
-
safe
_ load (2) - sender (1)
- setgid? (1)
- setuid? (1)
- sexp (1)
-
sexp
_ raw (1) -
sharing
_ detection (1) -
sharing
_ detection= (1) -
singleline
_ format (1) -
singleline
_ pp (1) - socket? (1)
- socketpair (1)
- srand (1)
-
ssl
_ available? (1) - start (4)
- stat (2)
- stdout (1)
- sticky? (1)
- stop (1)
- stress (1)
-
strongly
_ connected _ components (1) - symlink? (1)
- table (1)
-
task
_ defined? (1) - tcp (1)
-
tcp
_ server _ sockets (2) -
to
_ h (1) -
to
_ tty? (1) - top (1)
- trace (1)
-
trace
_ func (1) -
try
_ convert (5) - tsort (1)
-
tsort
_ each (2) - typelibs (2)
-
udp
_ server _ sockets (2) - union (1)
- unix (1)
-
unix
_ server _ socket (1) -
unused
_ bits (1) -
unused
_ bits= (1) -
urlsafe
_ base64 (1) -
use
_ registry (1) -
use
_ ssl? (1) -
used
_ modules (1) - uuid (1)
-
valid
_ civil? (1) -
valid
_ commercial? (1) -
valid
_ date? (1) -
valid
_ jd? (1) -
valid
_ ordinal? (1) - value? (1)
- verbose (2)
- verbose= (2)
- verbose? (1)
-
verbose
_ flag (1) -
verbose
_ flag= (1) -
verify
_ compaction _ references (1) - version (2)
-
world
_ readable? (1) -
world
_ writable? (1) - wrap (5)
- writable? (1)
-
writable
_ real? (1) -
yaml
_ tag (1) - yield (1)
- zero? (1)
検索結果
先頭5件
- Symbol
. all _ symbols -> [Symbol] - OpenSSL
:: ASN1 :: BitString . unused _ bits=(b) - Gem
:: Ext :: ConfigureBuilder . build(extension , directory , dest _ path , results) -> Array - Gem
:: Ext :: ExtConfBuilder . build(extension , directory , dest _ path , results) -> Array - Gem
:: Ext :: RakeBuilder . build(extension , directory , dest _ path , results) -> Array
-
Symbol
. all _ symbols -> [Symbol] (27604.0) -
定義済みの全てのシンボルオブジェクトの配列を返します。
定義済みの全てのシンボルオブジェクトの配列を返します。
p Symbol.all_symbols #=> [:RUBY_PLATFORM, :RUBY_VERSION, ...]
リテラルで表記したシンボルのうち、コンパイル時に値が決まるものはその時に生成されます。
それ以外の式展開を含むリテラルや、メソッドで表記されたものは式の評価時に生成されます。
(何にも使われないシンボルは最適化により生成されないことがあります)
def number
'make_3'
end
p Symbol.all_symbols.select{|sym|sym.to_s.in... -
OpenSSL
:: ASN1 :: BitString . unused _ bits=(b) (27325.0) -
Bit Stringにフラグを設定します。
Bit Stringにフラグを設定します。
@param b フラグ(整数)
@see OpenSSL::ASN1::BitString#unused_bits -
Gem
:: Ext :: ConfigureBuilder . build(extension , directory , dest _ path , results) -> Array (27304.0) -
@todo
@todo
Makefile が存在しない場合は、configure スクリプトを実行して
Makefile を作成してから make を実行します。
@param extension このメソッドでは使用しません。
@param directory
@param dest_path
@param results コマンドの実行結果を格納します。破壊的に変更されます。
@see Gem::Ext::Builder.make -
Gem
:: Ext :: ExtConfBuilder . build(extension , directory , dest _ path , results) -> Array (27304.0) -
@todo
@todo
Makefile が存在しない場合は、extconf.rb を実行して
Makefile を作成してから make を実行します。
@param extension ファイル名を指定します。
@param directory このメソッドでは使用していません。
@param dest_path ???
@param results コマンドの実行結果を格納します。破壊的に変更されます。
@see Gem::Ext::Builder.make -
Gem
:: Ext :: RakeBuilder . build(extension , directory , dest _ path , results) -> Array (27304.0) -
@todo
@todo
mkrf_conf が存在する場合は、それを実行してから Rake を実行します。
@param extension ファイル名を指定します。
@param directory このメソッドでは使用していません。
@param dest_path ???
@param results コマンドの実行結果を格納します。破壊的に変更されます。
@see Gem::Ext::Builder.make -
OpenSSL
:: ASN1 :: BitString . unused _ bits -> Integer | nil (27304.0) -
Bit Stringに設定されたフラグを返します。
Bit Stringに設定されたフラグを返します。
@see OpenSSL::ASN1::BitString#unused_bits= -
CSV
. table(path , options = Hash . new) -> CSV :: Table | [Array] (18604.0) -
以下と同等のことを行うメソッドです。
以下と同等のことを行うメソッドです。
//emlist[][ruby]{
CSV.read( path, { headers: true,
converters: :numeric,
header_converters: :symbol }.merge(options) )
//}
@param path ファイル名を指定します。
@param options CSV.new のオプションと同じオプションを指定できます。
@see CSV.read -
DRb
:: DRbServer . verbose -> bool (18604.0) -
サーバ起動時の :verbose オプションのデフォルト値を返します。
サーバ起動時の :verbose オプションのデフォルト値を返します。
@see DRb::DRbServer.new, DRb.#start_service,
DRb::DRbServer.verbose= -
IRB
:: ExtendCommandBundle . extend _ object(obj) -> IRB :: ExtendCommandBundle (18604.0) -
IRB::ExtendCommandBundle で定義済みの拡張に指定されたエイリアスを obj に定義します。
IRB::ExtendCommandBundle で定義済みの拡張に指定されたエイリアスを
obj に定義します。
@param obj IRB::ExtendCommandBundle を extend したオブジェクト -
Net
:: HTTPResponse . body _ permitted? -> bool (18604.0) -
エンティティボディを含むことが許されているレスポンスクラス ならば真を、そうでなければ偽を返します。
エンティティボディを含むことが許されているレスポンスクラス
ならば真を、そうでなければ偽を返します。
//emlist[例][ruby]{
require 'net/http'
Net::HTTPSuccess.body_permitted? # => true
Net::HTTPNotModified.body_permitted? # => false
//} -
RakeFileUtils
. verbose _ flag -> bool (18604.0) -
この値が真の場合、詳細を表示します。
この値が真の場合、詳細を表示します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :sample_file_task
file :sample_file_task do |t|
# --verbose で rake を実行する
RakeFileUtils.verbose_flag # => true
end
//} -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (18604.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 . load _ from _ binary _ extra _ data(binary) -> String (18604.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary -
Socket
:: Option . bool(family , level , optname , boolean) -> Socket :: Option (18604.0) -
整数をデータとして持つ Socket::Option オブジェクト新たに生成し返します。
整数をデータとして持つ Socket::Option オブジェクト新たに生成し返します。
family, level, optname には Socket::SOL_SOCKET のような整数の他、
文字列("SOL_SOCKET", "SOCKET")、シンボル(:SOL_SOCKET, :SOCKET)を
指定することができます。
@param family ソケットファミリー
@param level ソケットオプションレベル
@param optname オプションの名前
@param boolean データ(真偽値)
require 'socket'
p Socke... -
Thread
. abort _ on _ exception -> bool (18604.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例外は、Thread#join などで検出されない限りそのスレッドだけをなにも警告を出さずに終了させます。
真の時は、いずれかのスレッドが例外によって終了した時に、インタプリタ
全体を中断させます。false の場合、あるスレッドで起こった例外は、Thread#join
などで検出されない限りそのスレッドだけをなにも警告を出さずに終了させます。
デフォルトは false です。
c:Thread#exceptionを参照してください。
@param newstate スレッド実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。
//emlist[例][ruby]{
Thread.abort_on_exception # => false... -
Tracer
. verbose -> bool (18604.0) -
真ならばトレース出力の開始や終了を知らせます。
真ならばトレース出力の開始や終了を知らせます。 -
Tracer
. verbose? -> bool (18604.0) -
真ならばトレース出力の開始や終了を知らせます。
真ならばトレース出力の開始や終了を知らせます。 -
Matrix
. combine(*matrices) -> Enumerator (18340.0) -
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
//emlist[例][ruby]{
require 'matrix'
x = Matrix[[6, 6], [4, 4]]
y = Matrix[[1, 2], [3, 4]]
Matrix.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
//}
@param matrices 並べる行列。すべての行列の行数と列数が一致していなければならない
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列... -
Matrix
. combine(*matrices) {|*elements| . . . } -> Matrix (18340.0) -
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
//emlist[例][ruby]{
require 'matrix'
x = Matrix[[6, 6], [4, 4]]
y = Matrix[[1, 2], [3, 4]]
Matrix.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
//}
@param matrices 並べる行列。すべての行列の行数と列数が一致していなければならない
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列... -
URI
:: LDAP . build(ary) -> URI :: LDAP (18340.0) -
引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。 引数の正当性を検査します。
引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。
引数の正当性を検査します。
@param ary 構成要素を表す配列を与えます。要素は次の順です。
//emlist{
[:host, :port, :dn, :attributes, :scope, :filter, :extensions]
//}
@param hash 構成要素を表すハッシュを与えます。ハッシュのキーは
//emlist{
:host, :port, :dn, :attributes, :scope, :filter, :extensions... -
URI
:: LDAP . build(hash) -> URI :: LDAP (18340.0) -
引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。 引数の正当性を検査します。
引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。
引数の正当性を検査します。
@param ary 構成要素を表す配列を与えます。要素は次の順です。
//emlist{
[:host, :port, :dn, :attributes, :scope, :filter, :extensions]
//}
@param hash 構成要素を表すハッシュを与えます。ハッシュのキーは
//emlist{
:host, :port, :dn, :attributes, :scope, :filter, :extensions... -
Encoding
. compatible?(obj1 , obj2) -> Encoding | nil (18322.0) -
2つのオブジェクトのエンコーディングに関する互換性をチェックします。 互換性がある場合はそのエンコーディングを、 ない場合は nil を返します。
2つのオブジェクトのエンコーディングに関する互換性をチェックします。
互換性がある場合はそのエンコーディングを、
ない場合は nil を返します。
引数が両方とも文字列である場合、互換性があるならば
その文字列を結合できます。この場合返り値のエンコーディングは
結合した文字列が取るであろう Encoding オブジェクトを返します。
//emlist[例][ruby]{
Encoding.compatible?("\xa1".force_encoding("iso-8859-1"), "b")
#=> #<Encoding:ISO-8859-1>
Encoding.compatible?... -
SecureRandom
. urlsafe _ base64(n = nil , padding = false) -> String (18322.0) -
ランダムで URL-safe な base64 文字列を生成して返します。
ランダムで URL-safe な base64 文字列を生成して返します。
@param n 文字列の生成に使われるランダムネスのサイズを整数で指定します。
生成される文字列のサイズはn の約 4/3 倍になります。
nil を指定した場合 n として 16 が使われます。
@param padding 真を指定すると '=' でパディングを行います。
偽を指定するとパディングを行いません。デフォルトは偽です。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
... -
BigDecimal
. double _ fig -> Integer (18304.0) -
Ruby の Float クラスが保持できる有効数字の数を返します。
Ruby の Float クラスが保持できる有効数字の数を返します。
//emlist[][ruby]{
require 'bigdecimal'
p BigDecimal::double_fig # ==> 16 (depends on the CPU etc.)
//}
double_figは以下の C プログラムの結果と同じです。
double v = 1.0;
int double_fig = 0;
while (v + 1.0 > 1.0) {
++double_fig;
v /= 10;
} -
CGI
:: Session . callback(dbman) (18304.0) -
-
Coverage
. line _ stub(file) -> Array (18304.0) -
行カバレッジの配列のスタブを返します。
行カバレッジの配列のスタブを返します。
測定対象となる行の要素は 0, 空行やコメントなどにより測定対象外となる行の要素は nil となります。
//emlist[foo.rb][ruby]{
s = 0
10.times do |x|
s += x
end
if s == 45
p :ok
else
p :ng
end
//}
このファイルに対して line_stub を実行すると、次のようになります。
//emlist[][ruby]{
require "coverage"
p Coverage.line_stub("foo.rb") #=> [0, 0, 0, ... -
DRb
:: DRbServer . verbose=(on) (18304.0) -
サーバ起動時の :verbose オプションのデフォルト値を指定します。
サーバ起動時の :verbose オプションのデフォルト値を指定します。
初期値は false です。
@see DRb::DRbServer.new, DRb.#start_service -
File
. absolute _ path(file _ name , dir _ string=nil) -> String (18304.0) -
file_name を絶対パスに変換した文字列を返します。
file_name を絶対パスに変換した文字列を返します。
相対パスの場合はカレントディレクトリを基準とします。
dir_string を渡した場合はそのディレクトリを基準とします。
File.expand_path と異なり、 file_name 先頭が "~" である場合
それは展開されません。普通のディレクトリ名として処理されます。
//emlist[例][ruby]{
p Dir.getwd #=> "/home/matz/work/bar"
p ENV["HOME"] #=> "/home/mat... -
File
. absolute _ path?(file _ name) -> bool (18304.0) -
file_name が絶対パスなら true を、そうでなければ false を返します。
file_name が絶対パスなら true を、そうでなければ false を返します。
@param file_name ファイル名を表す文字列を指定します。文字列でない場合は、to_path メソッド、to_str メソッドの順で暗黙の型変換が試みられます。
@raise TypeError 引数に文字列以外の(暗黙の型変換が行えない)オブジェクトを指定した場合に発生します。
//emlist[例][ruby]{
File.absolute_path?("//foo/bar\\baz") # => true
File.absolute_path?("C:foo\\bar") ... -
File
. basename(filename , suffix = "") -> String (18304.0) -
filename の一番後ろのスラッシュに続く要素を返します。もし、 引数 suffix が与えられて、かつそれが filename の末尾に 一致するなら、それを取り除いたものを返します。
filename の一番後ろのスラッシュに続く要素を返します。もし、
引数 suffix が与えられて、かつそれが filename の末尾に
一致するなら、それを取り除いたものを返します。
//emlist[例][ruby]{
p File.basename("ruby/ruby.c") #=> "ruby.c"
p File.basename("ruby/ruby.c", ".c") #=> "ruby"
p File.basename("ruby/ruby.c", ".*") #=> "ruby"
p File.basename("ruby/ruby.e... -
File
. birthtime(filename) -> Time (18304.0) -
作成された時刻を返します。
作成された時刻を返します。
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
//emlist[例][ruby]{
File.birthtime("testfile") #=> Wed Apr 09 08:53:13 CDT 2003
//} -
File
. blockdev?(path) -> bool (18304.0) -
FileTest.#blockdev? と同じです。
FileTest.#blockdev? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。
@see FileTest.#blockdev? -
File
. executable?(path) -> bool (18304.0) -
FileTest.#executable? と同じです。
FileTest.#executable? と同じです。
@param path パスを表す文字列を指定します。 -
File
. executable _ real?(path) -> bool (18304.0) -
FileTest.#executable_real? と同じです。
FileTest.#executable_real? と同じです。
@param path パスを表す文字列を指定します。 -
File
. readable?(path) -> bool (18304.0) -
FileTest.#readable? と同じです。
FileTest.#readable? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。 -
File
. readable _ real?(path) -> bool (18304.0) -
FileTest.#readable_real? と同じです。
FileTest.#readable_real? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。 -
File
. world _ readable?(path) -> Integer | nil (18304.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
path が全てのユーザから読めるならばそのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_readable?("/etc/passwd")
"%o" % m # => "644"
//} -
File
. world _ writable?(path) -> bool (18304.0) -
path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//} -
File
. writable?(path) -> bool (18304.0) -
FileTest.#writable? と同じです。
FileTest.#writable? と同じです。
@param path パスを表す文字列を指定します。 -
File
. writable _ real?(path) -> bool (18304.0) -
FileTest.#writable_real? と同じです。
FileTest.#writable_real? と同じです。
@param path パスを表す文字列を指定します。 -
Forwardable
. debug -> bool (18304.0) -
委譲部分をバックトレースに含めるかどうかの状態を返します。
委譲部分をバックトレースに含めるかどうかの状態を返します。
バックトレースを含める設定となっている時、真を返します。
デフォルトは含めない設定となっています。 -
Forwardable
. debug= -> bool (18304.0) -
委譲部分をバックトレースに含めるかどうかの状態を設定します。
委譲部分をバックトレースに含めるかどうかの状態を設定します。 -
GC
. disable -> bool (18304.0) -
ガーベージコレクトを禁止します。
ガーベージコレクトを禁止します。
前回の禁止状態を返します(禁止されていたなら true, GC が有効であったなら、
false)。
//emlist[例][ruby]{
GC.disable # => false
GC.disable # => true
//}
@see GC.enable -
GC
. enable -> bool (18304.0) -
ガーベージコレクトを許可します。
ガーベージコレクトを許可します。
前回の禁止状態を返します(禁止されていたなら true, GC が有効であったなら、
false)。
@see GC.disable
//emlist[例][ruby]{
GC.disable # => false
GC.enable # => true
GC.enable # => false
//} -
GC
:: Profiler . disable -> nil (18304.0) -
GC のプロファイラを停止します。
GC のプロファイラを停止します。
例:
GC::Profiler.disable
GC::Profiler.enabled? #=> false
このメソッドでは、蓄積したプロファイル情報は破棄しません。
破棄したい場合は GC::Profiler.clear を呼び出してください。
@see GC::Profiler.enable, GC::Profiler.enabled? -
GC
:: Profiler . enable -> nil (18304.0) -
GC のプロファイラを起動します。
GC のプロファイラを起動します。
このメソッドを呼び出してから GC が発生すると、
GC についてプロファイル情報を取得します。
例:
GC::Profiler.enable
GC::Profiler.enabled? #=> true
@see GC::Profiler.disable, GC::Profiler.enabled? -
GC
:: Profiler . enabled? -> bool (18304.0) -
GC のプロファイラを起動中であれば true、停止中であれば false を返します。
GC のプロファイラを起動中であれば true、停止中であれば false を返します。
例:
GC::Profiler.enabled? #=> false
GC::Profiler.enable
GC::Profiler.enabled? #=> true
GC::Profiler.disable
GC::Profiler.enabled? #=> false
@see GC::Profiler.enable, GC::Profiler.disable -
Gem
. default _ bindir -> String (18304.0) -
実行ファイルのデフォルトのパスを返します。
実行ファイルのデフォルトのパスを返します。 -
Gem
. ensure _ ssl _ available (18304.0) -
OpenSSL が使用可能でない場合は例外を発生させます。
OpenSSL が使用可能でない場合は例外を発生させます。
@raise Gem::Exception OpenSSL が有効でない場合に発生します。 -
Gem
. ruby _ engine -> String (18304.0) -
Ruby処理系実装の種類を表す文字列を返します。
Ruby処理系実装の種類を表す文字列を返します。 -
Gem
. ssl _ available? -> bool (18304.0) -
現在実行中のプラットフォームで OpenSSL が有効である場合は真を返します。 そうでない場合は偽を返します。
現在実行中のプラットフォームで OpenSSL が有効である場合は真を返します。
そうでない場合は偽を返します。 -
Gem
:: Command . build _ args -> Array (18304.0) -
Gem をビルドするときに使用するパラメータを返します。
Gem をビルドするときに使用するパラメータを返します。 -
Gem
:: Command . build _ args=(value) (18304.0) -
Gem をビルドするときに使用するパラメータをセットします。
Gem をビルドするときに使用するパラメータをセットします。
@param value Gem をビルドするときに使用するパラメータを指定します。 -
Gem
:: Format . from _ file _ by _ path(file _ path , security _ policy = nil) -> Gem :: Format (18304.0) -
@todo security_policy
@todo security_policy
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
@param file_path Gem ファイルへのパスを指定します。
@param security_policy ??? -
Gem
:: OldFormat . from _ file _ by _ path(file _ path) -> Gem :: OldFormat (18304.0) -
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
@param file_path Gem ファイルへのパスを指定します。 -
Gem
:: QuickLoader . load _ full _ rubygems _ library (18304.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
Gem
:: Security . build _ cert(name , key , options = {}) -> OpenSSL :: X509 :: Certificate (18304.0) -
与えられた DN と秘密鍵を使用して証明書を作成します。
与えられた DN と秘密鍵を使用して証明書を作成します。
@param name DN を指定します。
@param key 秘密鍵を指定します。
@param options オプションを指定します。 -
Gem
:: Security . build _ self _ signed _ cert(email _ addr , options = {}) -> Hash (18304.0) -
与えられたメールアドレスを元にして自己署名証明書を作成します。
与えられたメールアドレスを元にして自己署名証明書を作成します。
@param email_addr メールアドレスを指定します。
@param options オプションを指定します。
@return 鍵と証明書とそれらを保存したパスを表すハッシュを返します。 -
Gem
:: Specification . array _ attribute(name) -> () (18304.0) -
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
@param name 属性の名前を指定します。
@see Gem::Specification.attribute -
Gem
:: Specification . array _ attributes -> Array (18304.0) -
@@array_attributes の複製を返します。
@@array_attributes の複製を返します。
@see Object#dup -
Gem
:: Specification . attribute(name) -> () (18304.0) -
デフォルト値を指定したアクセサを定義するために使用します。
デフォルト値を指定したアクセサを定義するために使用します。
以下の副作用があります。
* クラス変数 @@attributes, @@default_value を変更します。
* 通常の属性書き込みメソッドを定義します。
* デフォルト値を持つ属性読み取りメソッドのように振る舞うメソッドを定義します。 -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (18304.0) -
既に存在する複数形の属性の単数形バージョンを定義します。
既に存在する複数形の属性の単数形バージョンを定義します。
これは単に一つの引数を受け取りそれを配列に追加するようなヘルパーメソッドを定義するということです。
例:
# このように定義すると
attribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'
@param singular 属性名の単数形を指定します。
@param plural 属性名の複数形を... -
Gem
:: Specification . attribute _ defaults -> Array (18304.0) -
@todo
@todo
@@attributes の複製を返します。 -
Gem
:: Specification . attribute _ names -> Array (18304.0) -
属性名の配列を返します。
属性名の配列を返します。 -
Gem
:: Specification . attributes(*args) -> () (18304.0) -
複数の属性を一度に作成するために使用します。
複数の属性を一度に作成するために使用します。
各属性のデフォルト値は nil になります。
@param args 属性名を一つ以上指定します。 -
Gem
:: Specification . required _ attribute(name , default = nil) -> () (18304.0) -
必須の属性を作成します。
必須の属性を作成します。
@param name 属性名を指定します。
@param default デフォルト値を指定します。
@see Gem::Specification.attribute -
Gem
:: Specification . required _ attribute?(name) -> bool (18304.0) -
必須属性であれば真を返します。
必須属性であれば真を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . required _ attributes -> Array (18304.0) -
必須属性のリストを返します。
必須属性のリストを返します。 -
Hash
. ruby2 _ keywords _ hash?(hash) -> bool (18304.0) -
Module#ruby2_keywordsやProc#ruby2_keywordsによる ruby2_keywords フラグが設定されているかどうかを返します。
Module#ruby2_keywordsやProc#ruby2_keywordsによる
ruby2_keywords フラグが設定されているかどうかを返します。
このメソッドはデバッグや調査、シリアライゼーションのために本当に必要な場合のために
用意されていて、普通のプログラムで使うことは想定されていません。
ruby 2.7.1 で追加されたため、ruby 2.7.0 では定義されていません。
//emlist[][ruby]{
ruby2_keywords def foo(*args)
Hash.ruby2_keywords_hash?(args.last)
end
foo(... -
IO
. binread(path , length = nil , offset = 0) -> String | nil (18304.0) -
path で指定したファイルを open し、offset の所まで seek し、 length バイト読み込みます。
path で指定したファイルを open し、offset の所まで seek し、
length バイト読み込みます。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドの出力を読み取ります。
length を省略するとファイルの末尾まで読み込みます。
ファイルを開くときの mode は "rb:ASCII-8BIT" です。
//emlist[例][ruby]{
IO.write("testfile", "This is line one\nThis is line two\nThis is line three\nAnd so on...... -
IO
. binwrite(path , string , offset=nil) -> Integer (18304.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
path で指定されるファイルを開き、string を書き込み、
閉じます。
ファイルを開くときの mode が "rb:ASCII-8BIT" で、バイナリモードが有効
である点以外は IO.write と同じです。
Kernel.#open と同様 path の先頭が "|" ならば、"|" に続くコマンドを実行し、コマンドの出力を標準出力に書き込みます。
offset を指定するとその位置までシークします。
offset を指定しないと、書き込みの末尾でファイルを
切り捨てます。
@param path ファイル名文字列
@param string 書き込む文字列
@param... -
IRB
. irb _ abort(irb , exception = Abort) (18304.0) -
実行中の処理を中断します。必ず例外が発生するため、何も返しません。
実行中の処理を中断します。必ず例外が発生するため、何も返しません。
@param irb 現在の IRB::Irb オブジェクトを指定します。
@param exception 発生させる例外を指定します。指定しなかった場合は
IRB::Abort が発生します。
@raise exception 引数 exception で指定した例外が発生します。
ユーザが直接使用するものではありません。 -
IRB
. irb _ at _ exit -> () (18304.0) -
at_exit で登録された処理を実行します。
at_exit で登録された処理を実行します。
ユーザが直接使用するものではありません。 -
IRB
. irb _ exit(irb , ret) -> object (18304.0) -
irb を終了します。ret で指定したオブジェクトを返します。
irb を終了します。ret で指定したオブジェクトを返します。
@param irb 現在の IRB::Irb オブジェクトを指定します。
@param ret 戻り値を指定します。
ユーザが直接使用するものではありません。 -
IRB
:: ExtendCommandBundle . irb _ original _ method _ name(method _ name) -> String (18304.0) -
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。
method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。
@param method_name メソッド名を Symbol か文字列で指定します。
@see IRB::ExtendCommandBundle#install_alias_method -
IRB
:: Frame . bottom(n = 0) -> Binding (18304.0) -
下から n 番目のコンテキストを取り出します。
下から n 番目のコンテキストを取り出します。
@param n 取り出すコンテキストを Integer で指定します。n は 0 が最
下位になります。 -
Matrix
. build(row _ size , column _ size = row _ size) -> Enumerable (18304.0) -
row_size×column_sizeの行列をブロックの返り値から生成します。
row_size×column_sizeの行列をブロックの返り値から生成します。
行列の各要素の位置がブロックに渡され、それの返り値が行列の要素となります。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
m = Matrix.build(2, 4) {|row, col| col - row }
# => Matrix[[0, 1, 2, 3], [-1, 0, 1, 2]]
m = Matrix.build(3) { rand }
# => a 3x3 matrix with random... -
Matrix
. build(row _ size , column _ size = row _ size) {|row , col| . . . } -> Matrix (18304.0) -
row_size×column_sizeの行列をブロックの返り値から生成します。
row_size×column_sizeの行列をブロックの返り値から生成します。
行列の各要素の位置がブロックに渡され、それの返り値が行列の要素となります。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
m = Matrix.build(2, 4) {|row, col| col - row }
# => Matrix[[0, 1, 2, 3], [-1, 0, 1, 2]]
m = Matrix.build(3) { rand }
# => a 3x3 matrix with random... -
Mutex
_ m . extend _ object(module) -> Module (18304.0) -
ユーザが直接、使うことはありません。
ユーザが直接、使うことはありません。
@see Module#extend_object -
Net
:: IMAP . debug -> bool (18304.0) -
デバッグモードが on になっていれば真を返します。
デバッグモードが on になっていれば真を返します。
@see Net::IMAP#debug= -
Net
:: IMAP . debug=(val) (18304.0) -
デバッグモードの on/off をします。
デバッグモードの on/off をします。
真を渡すと on になります。
@param val 設定するデバッグモードの on/off の真偽値
@see Net::IMAP#debug -
Net
:: POP3 . disable _ ssl -> () (18304.0) -
新しく生成する Net::POP3 オブジェクトが SSL を利用しないように設定します。
新しく生成する Net::POP3 オブジェクトが
SSL を利用しないように設定します。
@see Net::POP3.enable_ssl, Net::POP3.use_ssl? -
Net
:: POP3 . enable _ ssl(verify _ or _ params={} , certs=nil) -> () (18304.0) -
新しく生成する Net::POP3 オブジェクトが SSL による通信利用するように設定します。
新しく生成する Net::POP3 オブジェクトが
SSL による通信利用するように設定します。
verify_or_params にハッシュを渡した場合には、接続時に生成される
OpenSSL::SSL::SSLContext オブジェクトの
OpenSSL::SSL::SSLContext#set_params に渡されます。
certs は無視されます。
verify_or_params がハッシュでない場合には、接続時に生成される
OpenSSL::SSL::SSLContext オブジェクトの
OpenSSL::SSL::SSLContext#set_params に
{ :... -
Net
:: SMTP . default _ submission _ port -> Integer (18304.0) -
デフォルトのサブミッションポート番号(587)を返します。
デフォルトのサブミッションポート番号(587)を返します。 -
OpenSSL
:: Engine . by _ id(id) -> OpenSSL :: Engine (18304.0) -
id で指定した engine をロードします。
id で指定した engine をロードします。
OpenSSL::Engine#load ではコンパイル時に決められた engine しか
読み込めませんが、これは動的なロードが可能です。
@param id engine の名前(文字列)
@raise OpenSSL::Engine::EngineError ロードが失敗した場合に発生します。 -
OpenSSL
:: PKey :: EC . builtin _ curves -> [[String , String]] (18304.0) -
組み込みの曲線の名前と、それに対する説明を文字列の配列ペアの配列で返します。
組み込みの曲線の名前と、それに対する説明を文字列の配列ペアの配列で返します。
例:
require 'openssl'
OpenSSL::PKey::EC.builtin_curves
# => [["secp112r1", "SECG/WTLS curve over a 112 bit prime field"],
# ["secp112r2", "SECG curve over a 112 bit prime field"],
# ["secp128r1", "SECG curve over a 128 bit prime field"],
... -
OptionParser
:: ParseError . filter _ backtrace(array) -> [String] (18304.0) -
array で指定されたバックトレースから optparse ライブラリに関する行を除 外します。
array で指定されたバックトレースから optparse ライブラリに関する行を除
外します。
デバッグモード($DEBUGが真)の場合は何もしません。
@param array バックトレースを文字列の配列で指定します。
@return array を返します。 -
Pathname
. glob(pattern , flags=0) -> [Pathname] (18304.0) -
ワイルドカードの展開を行なった結果を、 Pathname オブジェクトの配列として返します。
ワイルドカードの展開を行なった結果を、
Pathname オブジェクトの配列として返します。
引数の意味は、Dir.glob と同じです。 flag の初期値である 0 は「何
も指定しない」ことを意味します。
ブロックが与えられたときは、ワイルドカードにマッチした Pathname オブジェ
クトを1つずつ引数としてそのブロックに与えて実行させます。この場合、値と
しては nil を返します。
@param pattern ワイルドカードパターンです
@param flags パターンマッチ時のふるまいを変化させるフラグを指定します
//emlist[][ruby]{
requ... -
Pathname
. glob(pattern , flags=0) {|pathname| . . . } -> nil (18304.0) -
ワイルドカードの展開を行なった結果を、 Pathname オブジェクトの配列として返します。
ワイルドカードの展開を行なった結果を、
Pathname オブジェクトの配列として返します。
引数の意味は、Dir.glob と同じです。 flag の初期値である 0 は「何
も指定しない」ことを意味します。
ブロックが与えられたときは、ワイルドカードにマッチした Pathname オブジェ
クトを1つずつ引数としてそのブロックに与えて実行させます。この場合、値と
しては nil を返します。
@param pattern ワイルドカードパターンです
@param flags パターンマッチ時のふるまいを変化させるフラグを指定します
//emlist[][ruby]{
requ... -
Process
. abort -> () (18304.0) -
関数 Kernel.#abort と同じです。
関数 Kernel.#abort と同じです。
@param message 終了時のメッセージを文字列で指定します。 -
Process
. abort(message) -> () (18304.0) -
関数 Kernel.#abort と同じです。
関数 Kernel.#abort と同じです。
@param message 終了時のメッセージを文字列で指定します。 -
Psych
. libyaml _ version -> [Integer , Integer , Integer] (18304.0) -
libyaml のバージョンを返します。
libyaml のバージョンを返します。
[major, minor patch-level] という 3 つの整数からなる配列を返します。
@see Psych::LIBYAML_VERSION -
RakeFileUtils
. verbose _ flag=(flag) (18304.0) -
詳細を表示するかどうか設定します。
詳細を表示するかどうか設定します。
@param flag 詳細を表示するかどうか指定します。真を指定すると詳細を表示します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :sample_file_task
file :sample_file_task do |t|
# --verbose で rake を実行する
p RakeFileUtils.verbose_flag # => true
RakeFileUtils.verbose_flag = false
p RakeFileUtils.verbose... -
Random
. bytes(size) -> String (18304.0) -
ランダムなバイナリー文字列を返します。結果の文字列のサイズを指定できます。
ランダムなバイナリー文字列を返します。結果の文字列のサイズを指定できます。
@param size 結果の文字列のサイズをバイト数で指定します。
//emlist[][ruby]{
Random.bytes(10) # => "\xAC\n\x7F\x8C/\xAA\xC4\x97u\xA6"
//}
@see Random#bytes -
RbConfig
. ruby -> String (18304.0) -
ruby コマンドのフルパスを返します。
ruby コマンドのフルパスを返します。 -
Readline
. basic _ quote _ characters -> String (18304.0) -
スペースなどの単語の区切りをクオートするための 複数の文字で構成される文字列を取得します。
スペースなどの単語の区切りをクオートするための
複数の文字で構成される文字列を取得します。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.basic_quote_characters= -
Readline
. basic _ quote _ characters=(string) (18304.0) -
スペースなどの単語の区切りをクオートするための 複数の文字で構成される文字列 string を指定します。
スペースなどの単語の区切りをクオートするための
複数の文字で構成される文字列 string を指定します。
GNU Readline のデフォルト値は、「"'」です。
@param string 文字列を指定します。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.basic_quote_characters -
Readline
. basic _ word _ break _ characters -> String (18304.0) -
ユーザの入力の補完を行う際、 単語の区切りを示す複数の文字で構成される文字列を取得します。
ユーザの入力の補完を行う際、
単語の区切りを示す複数の文字で構成される文字列を取得します。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.basic_word_break_characters= -
Readline
. basic _ word _ break _ characters=(string) (18304.0) -
ユーザの入力の補完を行う際、 単語の区切りを示す複数の文字で構成される文字列 string を指定します。
ユーザの入力の補完を行う際、
単語の区切りを示す複数の文字で構成される文字列 string を指定します。
GNU Readline のデフォルト値は、Bash の補完処理で使用している文字列
" \t\n\"\\'`@$><=;|&{(" (スペースを含む) になっています。
@param string 文字列を指定します。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.basic_word_break_characters -
Readline
. completer _ word _ break _ characters -> String (18304.0) -
ユーザの入力の補完を行う際、 単語の区切りを示す複数の文字で構成された文字列を取得します。 Readline.basic_word_break_characters との違いは、 GNU Readline の rl_complete_internal 関数で使用されることです。
ユーザの入力の補完を行う際、
単語の区切りを示す複数の文字で構成された文字列を取得します。
Readline.basic_word_break_characters との違いは、
GNU Readline の rl_complete_internal 関数で使用されることです。
@raise NotImplementedError サポートしていない環境で発生します。
@see Readline.completer_word_break_characters=