4829件ヒット
[1-100件を表示]
(0.062秒)
ライブラリ
- ビルトイン (1751)
- abbrev (11)
- benchmark (11)
-
cgi
/ html (198) - csv (22)
- date (11)
- etc (11)
- expect (22)
-
fiddle
/ import (22) - gdbm (11)
-
irb
/ ext / math-mode (4) - json (99)
- logger (68)
- matrix (165)
-
minitest
/ unit (2) - mkmf (77)
-
net
/ ftp (102) -
net
/ http (462) -
net
/ imap (66) - openssl (264)
- pathname (269)
- prime (77)
- rake (55)
-
rdoc
/ context (11) -
rdoc
/ top _ level (11) -
rexml
/ document (253) -
rexml
/ sax2listener (33) -
rexml
/ streamlistener (11) -
rinda
/ rinda (22) -
rinda
/ tuplespace (11) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ gem _ path _ searcher (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ platform (11) -
rubygems
/ remote _ fetcher (22) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (22) -
rubygems
/ user _ interaction (66) - scanf (12)
- set (22)
- shell (18)
-
shell
/ builtin-command (12) -
shell
/ command-processor (6) -
shell
/ filter (6) - socket (33)
- stringio (40)
- strscan (88)
-
syslog
/ logger (11) - tempfile (11)
- tsort (20)
- uri (11)
-
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htgroup (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httputils (55) -
win32
/ registry (11) -
yaml
/ dbm (11) - zlib (77)
クラス
-
ARGF
. class (55) - Array (251)
- BasicSocket (22)
-
Benchmark
:: Tms (11) -
CSV
:: Row (22) - Data (2)
- Date (11)
-
Encoding
:: Converter (44) - Enumerator (44)
-
Enumerator
:: ArithmeticSequence (41) -
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (22) -
File
:: Stat (121) - Float (38)
- GDBM (11)
-
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: DependencyList (11) -
Gem
:: GemPathSearcher (11) -
Gem
:: Package :: TarInput (11) -
Gem
:: Platform (11) -
Gem
:: RemoteFetcher (22) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (22) -
Gem
:: StreamUI (33) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (11) - Hash (90)
- IO (135)
-
IRB
:: Context (4) - Integer (4)
- LoadError (11)
- Logger (55)
-
Logger
:: Application (2) -
Logger
:: Formatter (11) - MatchData (158)
- Matrix (165)
- Method (11)
- Module (85)
-
Net
:: FTP (93) -
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (462) -
Net
:: IMAP (33) -
Net
:: IMAP :: Address (11) -
Net
:: IMAP :: Envelope (11) -
Net
:: IMAP :: ResponseCode (11) - NilClass (44)
- Numeric (48)
- Object (57)
-
OpenSSL
:: Engine (22) -
OpenSSL
:: OCSP :: BasicResponse (22) -
OpenSSL
:: PKCS7 (22) -
OpenSSL
:: PKey :: EC (22) -
OpenSSL
:: SSL :: SSLContext (77) -
OpenSSL
:: SSL :: SSLSocket (33) -
OpenSSL
:: X509 :: ExtensionFactory (22) -
OpenSSL
:: X509 :: Store (22) -
OpenSSL
:: X509 :: StoreContext (11) - Pathname (269)
- Prime (22)
-
Prime
:: EratosthenesGenerator (11) -
Prime
:: Generator23 (11) -
Prime
:: PseudoPrimeGenerator (22) -
Prime
:: TrialDivisionGenerator (11) - Proc (11)
-
Process
:: Status (33) -
RDoc
:: Context (11) -
RDoc
:: Options (33) -
RDoc
:: TopLevel (11) -
REXML
:: AttlistDecl (22) -
REXML
:: Attribute (11) -
REXML
:: Attributes (33) -
REXML
:: DocType (22) -
REXML
:: Element (77) -
REXML
:: Elements (44) -
REXML
:: Entity (11) -
REXML
:: NotationDecl (22) -
REXML
:: Parent (11) -
Rake
:: Application (11) -
Rake
:: FileList (11) - Range (22)
- Rational (11)
- Regexp (30)
-
Rinda
:: DRbObjectTemplate (11) -
Rinda
:: TupleSpace (11) -
Rinda
:: TupleSpaceProxy (11) -
RubyVM
:: InstructionSequence (20) - Set (22)
- Shell (18)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (6) -
Shell
:: Concat (6) -
Shell
:: Filter (6) -
Socket
:: AncillaryData (11) - String (200)
- StringIO (40)
- StringScanner (88)
- Symbol (19)
-
Syslog
:: Logger (11) - Tempfile (11)
- Thread (33)
-
URI
:: Generic (11) - UnboundMethod (11)
-
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htgroup (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPUtils :: FormData (55) -
Win32
:: Registry (11) -
YAML
:: DBM (11) -
Zlib
:: Deflate (22) -
Zlib
:: GzipReader (33) -
Zlib
:: GzipWriter (11) -
Zlib
:: Inflate (11)
モジュール
-
CGI
:: HtmlExtension (198) - Enumerable (147)
-
Fiddle
:: Importer (22) - GC (11)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (77)
-
MiniTest
:: Assertions (2) -
OpenSSL
:: Buffering (11) -
REXML
:: SAX2Listener (33) -
REXML
:: StreamListener (11) -
Rake
:: TaskManager (22) - TSort (20)
- Warning (3)
キーワード
- <=> (55)
- === (11)
- =~ (11)
- [] (132)
- abbrev (11)
-
absolute
_ path (11) -
add
_ bindir (11) -
add
_ element (11) -
add
_ status (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) - any? (14)
- append (11)
- ascend (22)
-
assert
_ match (1) -
assert
_ operator (1) - attlistdecl (22)
- attr (24)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (8) - attribute (11)
-
attribute
_ of (11) - autoload (11)
-
backtrace
_ locations (22) - begin (16)
- binread (11)
- binwrite (11)
- blksize (11)
- blocks (11)
- bsearch (22)
-
bsearch
_ index (9) - byteindex (2)
- byteoffset (4)
- byterindex (2)
-
ca
_ file= (11) -
ca
_ path (22) -
ca
_ path= (11) - captures (11)
- cert (33)
- cert= (22)
- certificates (11)
- chain (22)
- checkbox (11)
- chunk (11)
- cleanpath (11)
-
client
_ ca (11) -
cofactor
_ expansion (11) - collect (11)
- column (22)
- component (11)
-
const
_ source _ location (5) - copy (11)
- create (9)
-
create
_ makefile (11) -
create
_ rule (11) -
create
_ value (11) - cycle (22)
- data (11)
- date (11)
-
datetime
_ format (11) -
datetime
_ format= (22) -
deconstruct
_ keys (2) -
default
_ executable (11) - deflate (11)
- delete (11)
-
delete
_ at (22) -
delete
_ attribute (11) -
delete
_ if (22) - descend (22)
- detect (11)
-
dev
_ major (11) -
dev
_ minor (11) - each (133)
-
each
_ byte (11) -
each
_ cons (8) -
each
_ element (11) -
each
_ element _ with _ attribute (11) -
each
_ entry (13) -
each
_ filename (11) -
each
_ line (110) -
each
_ slice (8) -
each
_ strongly _ connected _ component (10) - element (11)
- end (17)
-
enhance
_ with _ matching _ rule (11) -
enum
_ for (22) - exitstatus (11)
- expect (22)
-
extra
_ chain _ cert (11) - fatal (33)
- feed (11)
-
fetch
_ path (11) - fields (11)
-
file
_ field (11) - filename (11)
- filename= (11)
- filter! (12)
- find (44)
-
find
_ enclosing _ module _ named (11) -
find
_ executable (11) -
find
_ index (55) -
find
_ library (22) -
find
_ local _ symbol (11) -
find
_ name (11) - first (12)
- flatten (22)
- flatten! (22)
- flush (33)
- foreach (18)
- form (44)
- format (11)
- formatter (22)
- ftype (11)
-
garbage
_ collect (11) - get (33)
- get2 (22)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ path (11) -
get
_ text (11) - getbinaryfile (11)
- glob (14)
- gsub! (44)
- head (11)
- head2 (22)
- hidden (11)
- img (11)
- index (62)
- infinite? (11)
- inflate (11)
- inject (11)
- inspect (11)
-
issuer
_ certificate (11) -
keep
_ if (22) - key (11)
-
laplace
_ expansion (11) - last (12)
- lines (28)
-
load
_ gemspec (11) -
load
_ private _ key (11) -
load
_ public _ key (11) - lock (11)
- log (2)
- match (55)
- match? (35)
- matched (11)
- matched? (11)
-
matched
_ size (11) - matchedsize (11)
-
math
_ mode= (4) -
max
_ by (22) -
min
_ by (22) -
minmax
_ by (11) - mkcol (11)
- mkpath (11)
- mlsd (18)
- mlst (9)
- move (11)
-
multipart
_ form (44) - name (11)
- name= (11)
-
named
_ captures (11) - names (11)
- namespace (11)
- ndata (11)
-
next
_ values (11) - none? (13)
- notation (11)
- notationdecl (11)
- notify (22)
- offset (22)
- one? (13)
-
open
_ uri _ or _ path (11) - opendir (22)
- pack (19)
-
page
_ dir (11) - params (11)
-
password
_ field (11) - patch (22)
- path (35)
- pathconf (11)
- pathmap (22)
-
peek
_ values (11) -
peer
_ cert (22) -
peer
_ cert _ chain (11) - post (22)
- post2 (22)
-
post
_ match (11) -
pre
_ match (11) -
primitive
_ convert (44) - printf (55)
- private (16)
-
private
_ key (11) -
private
_ key= (11) - proppatch (11)
- public (11)
- pushd (6)
- pushdir (6)
- put (22)
- put2 (22)
- putbinaryfile (11)
- rationalize (22)
-
rdev
_ major (11) -
rdev
_ minor (11) - read (11)
- realdirpath (11)
- realpath (22)
- recvmsg (11)
-
recvmsg
_ nonblock (11) - reject! (22)
-
renegotiation
_ cb (11) -
renegotiation
_ cb= (11) - request (22)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - reset (11)
- retrbinary (11)
- rewind (33)
- rindex (22)
- rmtree (11)
- round (20)
- route (11)
- row (22)
-
ruby2
_ keywords (5) - scanf (12)
- select! (22)
-
send
_ request (11) -
set
_ default _ paths (11) - size (34)
- size? (11)
-
source
_ location (33) - specification (11)
-
start
_ element (11) - status (22)
- step (48)
- stopsig (11)
- storbinary (11)
- store (11)
- sub! (33)
-
subject
_ certificate (11) - submit (11)
- system (11)
-
template
_ dir (11) - terminate (11)
- termsig (11)
- text (11)
-
text
_ field (11) - then (6)
-
to
_ a (22) -
to
_ binary (9) -
to
_ enum (22) -
to
_ f (11) -
to
_ json (99) -
to
_ path (2) -
to
_ r (11) - tr! (11)
-
tr
_ s! (11) - trace (11)
-
try
_ file (11) -
try
_ static _ assert (22) -
tsort
_ each (10) -
uid
_ store (11) -
unix
_ rights (11) - unlock (11)
- unpack (11)
- updated (33)
-
upper
_ bound (11) -
upper
_ bound= (11) - value (11)
-
values
_ at (66) - verify (11)
- warn (3)
-
world
_ readable? (11) -
world
_ writable? (11) - write (22)
-
yield
_ self (7) - zip (22)
検索結果
先頭5件
-
Logger
:: Formatter # datetime _ format=(format) (15307.0) -
ログの日時フォーマットをセットします。
...am format 日時のフォーマット文字列。Time#strftime で使用するフォーマット文字列と
同じものを使用できます。
//emlist[例][ruby]{
require 'logger'
formatter = Logger::Formatter.new
formatter.datetime_format # => nil
formatter.datetime_format = '%Y......-%m-%d %H:%M:%S' # => "%Y-%m-%d %H:%M:%S"
formatter.datetime_format # => "%Y-%m-%d %H:%M:%S"
//}
@see Time#strftime... -
Array
# at(nth) -> object | nil (15236.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
...nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
@param nth インデックスを整数で指定します。
先頭の要素が 0 番目になります。nth の値が負の時には末尾から
のインデックス......みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [ "a", "b", "c", "d", "e" ]
a[0] #=> "a"
a[1] #=> "b"
a[-1] #=> "e"
a[-2] #=> "d"
a[10] #=> nil
//}... -
Logger
# datetime _ format -> String | nil (12320.0) -
ログに記録する時の日付のフォーマットです。
...ログに記録する時の日付のフォーマットです。
デフォルトでは nil ですが、この値が nil の場合は日付のフォーマットとして
"%Y-%m-%dT%H:%M:%S.%06d " を使用します。
なお、"%06d" には Time#strftime ではなく、単に Time#usec の
値を S......ります。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
logger.debug("test")
logger.datetime_format = '%Y/%m/%dT%H:%M:%S.%06d'
logger.datetime_format # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.debug("test")
# => D, [2019-03-12T22:52:13.674385 #173......93] DEBUG -- : test
# D, [2019/03/12T22:52:13.000012#17393] DEBUG -- : test
//}
@see Time#strftime, Logger#datetime_format=... -
Logger
# datetime _ format=(format) (12307.0) -
ログに記録する時の日付のフォーマットをセットします。
...//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
logger.debug("test")
logger.datetime_format = '%Y/%m/%dT%H:%M:%S.%06d' # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.datetime_format # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.debug("test")
# => D, [2019-03-13T23:......52:13.674385 #17393] DEBUG -- : test
# D, [2019/03/13T23:52:13.000012#17393] DEBUG -- : test
//}
@see Time#strftime, Logger#datetime_format... -
MatchData
# values _ at(*index) -> [String] (12150.0) -
正規表現中の n 番目の括弧にマッチした部分文字列の配列を返します。
...]{
m = /(foo)(bar)(baz)/.match("foobarbaz")
# same as m.to_a.values_at(...)
p m.values_at(0, 1, 2, 3, 4) # => ["foobarbaz", "foo", "bar", "baz", nil]
p m.values_at(-1, -2, -3, -4, -5) # => ["baz", "bar", "foo", nil, nil]
m = /(?<a>\d+) *(?<op>[+\-*\/]) *(?<b>\d+)/.match("1 + 2")
m.to_a......# => ["1 + 2", "1", "+", "2"]
m.values_at(:a, :b, :op) # => ["1", "2", "+"]
//}
@see Array#values_at, Array#[]... -
Pathname
# realpath(basedir = nil) -> Pathname (9320.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9320.0) -
namespace と name で特定される属性を返します。
...namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使うことで属性を正し......o:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.att......ributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9308.0) -
name という名前の属性を取得します。
...場合は nil を返します。
@param name 属性名(文字列)
@see REXML::Attributes#[]
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</......root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute("att") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
Pathname
# realdirpath(basedir = nil) -> Pathname (9302.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......me"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT......//}
@see Pathname#realpath... -
Pathname
# realpath -> Pathname (9220.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場......uire 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath
# =......> ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath...