7081件ヒット
[1-100件を表示]
(0.082秒)
種類
ライブラリ
- English (132)
- ビルトイン (2617)
- abbrev (22)
- benchmark (11)
-
cgi
/ html (198) - continuation (11)
- csv (55)
- date (11)
- etc (11)
- expect (22)
-
fiddle
/ import (22) - fileutils (17)
- find (11)
- gdbm (11)
- irb (11)
-
irb
/ context (11) -
irb
/ ext / math-mode (4) - json (165)
- logger (77)
- matrix (165)
-
minitest
/ unit (2) - mkmf (77)
-
mutex
_ m (11) -
net
/ ftp (102) -
net
/ http (484) -
net
/ imap (66) - objspace (55)
- openssl (484)
- pathname (291)
- prime (121)
- psych (22)
- pty (11)
- rake (77)
-
rdoc
/ context (11) -
rdoc
/ markup (11) -
rdoc
/ markup / formatter (11) -
rdoc
/ markup / to _ html _ crossref (11) -
rdoc
/ top _ level (11) - readline (11)
-
rexml
/ document (330) -
rexml
/ sax2listener (33) -
rexml
/ streamlistener (11) -
rinda
/ rinda (44) -
rinda
/ tuplespace (11) -
ripper
/ lexer (29) - rubygems (11)
-
rubygems
/ commands / unpack _ command (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ format (22) -
rubygems
/ gem _ path _ searcher (11) -
rubygems
/ package (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ package / tar _ output (11) -
rubygems
/ platform (11) -
rubygems
/ remote _ fetcher (22) -
rubygems
/ source _ index (22) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (44) -
rubygems
/ user _ interaction (66) -
rubygems
/ version (11) - scanf (12)
- set (22)
- shell (30)
-
shell
/ builtin-command (12) -
shell
/ command-processor (6) -
shell
/ filter (6) - socket (44)
- stringio (40)
- strscan (88)
-
syslog
/ logger (11) - tempfile (31)
- tsort (40)
- uri (66)
-
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htgroup (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httputils (55) -
webrick
/ utils (11) -
win32
/ registry (11) -
win32
/ resolv (11) -
yaml
/ dbm (11) - zlib (99)
クラス
-
ARGF
. class (55) - Addrinfo (11)
- Array (251)
- BasicSocket (22)
-
Benchmark
:: Tms (11) - CSV (33)
-
CSV
:: Row (22) - Data (2)
- Date (11)
- Dir (105)
- Encoding (11)
-
Encoding
:: Converter (66) - Enumerator (67)
-
Enumerator
:: ArithmeticSequence (41) -
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (33) - File (77)
-
File
:: Stat (132) - Float (38)
- GDBM (11)
-
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: DependencyList (11) -
Gem
:: FileOperations (11) -
Gem
:: Format (22) -
Gem
:: GemPathSearcher (11) -
Gem
:: Package :: TarInput (11) -
Gem
:: Package :: TarOutput (11) -
Gem
:: Platform (11) -
Gem
:: RemoteFetcher (22) -
Gem
:: SourceIndex (22) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (44) -
Gem
:: StreamUI (33) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (11) -
Gem
:: Version (11) - Hash (90)
- IO (267)
-
IRB
:: Context (4) - Integer (15)
- LoadError (11)
- Logger (63)
-
Logger
:: Application (3) -
Logger
:: Formatter (11) - MatchData (158)
- Matrix (165)
- Method (11)
- Module (79)
-
Net
:: FTP (93) -
Net
:: FTP :: MLSxEntry (9) -
Net
:: HTTP (473) -
Net
:: HTTPRequest (11) -
Net
:: IMAP (33) -
Net
:: IMAP :: Address (11) -
Net
:: IMAP :: Envelope (11) -
Net
:: IMAP :: ResponseCode (11) - NilClass (44)
- Numeric (48)
- Object (68)
-
OpenSSL
:: BN (11) -
OpenSSL
:: Digest (11) -
OpenSSL
:: Digest :: DSS (11) -
OpenSSL
:: Digest :: DSS1 (11) -
OpenSSL
:: Digest :: MD2 (11) -
OpenSSL
:: Digest :: MD4 (11) -
OpenSSL
:: Digest :: MD5 (11) -
OpenSSL
:: Digest :: MDC2 (11) -
OpenSSL
:: Digest :: RIPEMD160 (11) -
OpenSSL
:: Digest :: SHA (11) -
OpenSSL
:: Digest :: SHA1 (11) -
OpenSSL
:: Digest :: SHA224 (11) -
OpenSSL
:: Digest :: SHA256 (11) -
OpenSSL
:: Digest :: SHA384 (11) -
OpenSSL
:: Digest :: SHA512 (11) -
OpenSSL
:: Engine (22) -
OpenSSL
:: OCSP :: BasicResponse (22) -
OpenSSL
:: OCSP :: CertificateId (11) -
OpenSSL
:: PKCS12 (11) -
OpenSSL
:: PKCS7 (44) -
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 (291)
- Prime (44)
-
Prime
:: EratosthenesGenerator (11) -
Prime
:: Generator23 (11) -
Prime
:: PseudoPrimeGenerator (33) -
Prime
:: TrialDivisionGenerator (11) - Proc (11)
-
Process
:: Status (33) -
RDoc
:: Context (11) -
RDoc
:: Markup (11) -
RDoc
:: Markup :: Formatter (11) -
RDoc
:: Markup :: ToHtmlCrossref (11) -
RDoc
:: Options (33) -
RDoc
:: TopLevel (11) -
REXML
:: AttlistDecl (22) -
REXML
:: Attribute (33) -
REXML
:: Attributes (33) -
REXML
:: CData (11) -
REXML
:: DocType (22) -
REXML
:: Element (77) -
REXML
:: Elements (44) -
REXML
:: Entity (11) -
REXML
:: NotationDecl (22) -
REXML
:: Parent (11) -
REXML
:: XPath (33) -
Rake
:: Application (11) -
Rake
:: FileList (11) - Range (22)
- Rational (11)
- Regexp (52)
-
Rinda
:: DRbObjectTemplate (22) -
Rinda
:: TupleSpace (11) -
Rinda
:: TupleSpaceProxy (11) - Ripper (29)
-
RubyVM
:: InstructionSequence (42) - Set (22)
- Shell (30)
-
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 (31)
- Thread (33)
-
URI
:: FTP (22) -
URI
:: Generic (11) -
URI
:: HTTP (11) -
URI
:: LDAP (11) -
URI
:: MailTo (11) - UnboundMethod (11)
-
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htgroup (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPUtils :: FormData (55) -
Win32
:: Registry (11) -
Win32
:: Resolv (11) -
YAML
:: DBM (11) -
Zlib
:: Deflate (33) -
Zlib
:: GzipReader (33) -
Zlib
:: GzipWriter (11) -
Zlib
:: Inflate (22)
モジュール
- Abbrev (11)
-
CGI
:: HtmlExtension (198) - Enumerable (147)
-
Fiddle
:: Importer (22) - FileTest (22)
- FileUtils (17)
- Find (11)
- GC (44)
-
GC
:: Profiler (11) - Gem (11)
- IRB (11)
- JSON (44)
-
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 (400)
-
MiniTest
:: Assertions (2) -
Mutex
_ m (11) - ObjectSpace (66)
-
OpenSSL
:: ASN1 (11) -
OpenSSL
:: Buffering (11) -
OpenSSL
:: PKCS12 (8) - PTY (11)
- Process (29)
- Psych (22)
-
REXML
:: SAX2Listener (33) -
REXML
:: StreamListener (11) - Rake (22)
-
Rake
:: TaskManager (22) -
RubyVM
:: AbstractSyntaxTree (8) - TSort (40)
-
WEBrick
:: HTTPAuth :: Authenticator (11) -
WEBrick
:: Utils (11) - Warning (13)
オブジェクト
- ENV (72)
-
Readline
:: HISTORY (11) - main (16)
キーワード
-
$ ? (11) -
$ CHILD _ STATUS (11) -
$ FIELD _ SEPARATOR (11) -
$ FS (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ MATCH (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ RS (11) -
$ ~ (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (55)
- === (11)
- =~ (11)
-
ALT
_ SEPARATOR (11) - AuthScheme (11)
- Context (11)
- Continuation (11)
- DATA (11)
- Enumerator (11)
- Float (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NilClass (22)
- NotationDecl (11)
- Rational (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Stat (11)
- Template (11)
- [] (148)
- abbrev (22)
-
absolute
_ path (22) -
add
_ bindir (11) -
add
_ element (11) -
add
_ status (11) - alert (11)
-
alert
_ error (11) -
alert
_ warning (11) -
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) - any? (14)
- append (11)
-
append
_ features (11) - application (11)
- application= (11)
- ascend (22)
-
asciicompat
_ encoding (22) -
assert
_ match (1) -
assert
_ operator (1) - attlistdecl (22)
- attr (21)
-
attr
_ accessor (7) -
attr
_ reader (7) -
attr
_ writer (7) - attribute (11)
-
attribute
_ of (11) - attributes (11)
- autoload (22)
-
backtrace
_ locations (22) - begin (16)
- binread (22)
- binwrite (22)
- blksize (11)
- blocks (11)
- bsearch (22)
-
bsearch
_ index (9) - byteindex (2)
- byteoffset (4)
- byterindex (2)
-
ca
_ file= (11) -
ca
_ path (22) -
ca
_ path= (11) - caller (33)
-
caller
_ locations (22) - captures (11)
- cd (6)
- cert (33)
- cert= (22)
- certificates (11)
- chain (22)
- check (11)
- checkbox (11)
- chunk (11)
- cleanpath (11)
-
clear
_ paths (11) -
client
_ ca (11) -
cofactor
_ expansion (11) - collect (11)
- column (22)
- compatible? (11)
- compile (11)
- component (11)
-
const
_ source _ location (5) - copy (11)
-
count
_ tdata _ objects (11) -
cp
_ lr (6) - create (51)
-
create
_ listeners (11) -
create
_ makefile (11) -
create
_ rule (11) -
create
_ value (11) - cycle (22)
- data (11)
- date (11)
-
datetime
_ format (11) -
datetime
_ format= (22) - decode (11)
-
deconstruct
_ keys (2) -
def
_ system _ command (6) -
default
_ executable (11) - deflate (11)
- delete (11)
-
delete
_ at (33) -
delete
_ attribute (11) -
delete
_ if (33) - descend (22)
- detect (11)
-
dev
_ major (11) -
dev
_ minor (11) - each (166)
-
each
_ byte (11) -
each
_ child (28) -
each
_ cons (8) -
each
_ element (11) -
each
_ element _ with _ attribute (11) -
each
_ entry (13) -
each
_ filename (11) -
each
_ line (110) -
each
_ prime (11) -
each
_ slice (8) -
each
_ strongly _ connected _ component (20) - element (11)
- encrypt (11)
- end (17)
-
enhance
_ with _ matching _ rule (11) -
enum
_ for (22) - eval (11)
- 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! (18)
- find (55)
-
find
_ enclosing _ module _ named (11) -
find
_ executable (11) -
find
_ index (55) -
find
_ library (22) -
find
_ local _ symbol (11) -
find
_ name (11) - first (23)
- flatten (22)
- flatten! (22)
- flush (33)
- foreach (106)
- fork (22)
- form (44)
- format (11)
- formatter (22)
-
from
_ file _ by _ path (11) -
from
_ io (11) - ftype (11)
-
garbage
_ collect (22) - generate (11)
-
generate
_ line (11) -
generate
_ prime (11) - get (33)
- get2 (22)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ hosts _ path (11) -
get
_ path (11) -
get
_ response (11) -
get
_ text (11) - getbinaryfile (11)
- glob (58)
- 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 (33) - key (11)
-
laplace
_ expansion (11) - last (12)
-
last
_ match (22) -
last
_ status (7) -
latest
_ gc _ info (22) - lex (7)
- lines (28)
- load (11)
-
load
_ gemspec (11) -
load
_ private _ key (11) -
load
_ public _ key (11) -
load
_ specification (11) - lock (11)
- log (2)
- loop (11)
- match (66)
- 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)
- new (412)
- new2 (11)
-
next
_ values (11) - none? (13)
- notation (11)
- notationdecl (11)
- notify (22)
- offset (22)
- one? (13)
- open (11)
-
open
_ uri _ or _ path (11) - opendir (22)
- pack (19)
- pack テンプレート文字列 (11)
-
page
_ dir (11) - params (11)
- parse (11)
-
parse
_ file (8) -
password
_ field (11) - patch (22)
- path (35)
- pathconf (11)
- pathmap (22)
-
peek
_ values (11) -
peer
_ cert (22) -
peer
_ cert _ chain (11) -
pipe
_ open (11) - post (22)
- post2 (22)
-
post
_ match (11) -
pre
_ match (11) -
pretty
_ generate (11) -
pretty
_ unparse (11) -
primitive
_ convert (44) - printf (77)
- private (32)
-
private
_ key (11) -
private
_ key= (11) - produce (5)
- proppatch (11)
- public (11)
- pushd (6)
- pushdir (6)
- put (22)
- put2 (22)
- putbinaryfile (11)
- rand (22)
- rationalize (22)
-
raw
_ data (11) -
rb
_ false (11) -
rdev
_ major (11) -
rdev
_ minor (11) - read (44)
- readlines (33)
- realdirpath (22)
- realpath (33)
- recvmsg (11)
-
recvmsg
_ nonblock (11) - reject (11)
- reject! (33)
-
renegotiation
_ cb (11) -
renegotiation
_ cb= (11) - request (22)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) -
required
_ attribute (11) - reset (11)
- retrbinary (11)
- rewind (33)
- rindex (22)
- rmtree (11)
- round (20)
- route (11)
- row (22)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
ruby2
_ keywords (5) - scanf (12)
- select! (33)
-
send
_ request (11) -
set
_ default _ paths (11) - size (34)
- size? (22)
- slice (11)
-
source
_ location (33) - specification (11)
- start (22)
-
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) -
token
_ match (11) - tr! (11)
-
tr
_ s! (11) - trace (11)
-
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) -
try
_ file (11) -
try
_ static _ assert (22) -
tsort
_ each (20) -
uid
_ store (11) -
unix
_ rights (11) - unlock (11)
- unpack (11)
- unparse (11)
- updated (33)
-
upper
_ bound (11) -
upper
_ bound= (11) - uptodate? (11)
- value (11)
-
values
_ at (77) - verify (11)
- wait2 (11)
- waitpid2 (11)
- warn (12)
-
world
_ readable? (33) -
world
_ writable? (33) - write (44)
-
write
_ smime (11) - xmlrpc (3)
-
yield
_ self (7) - zip (22)
- 制御構造 (11)
- 正規表現 (11)
- 演算子式 (11)
検索結果
先頭5件
-
Logger
:: Formatter # datetime _ format=(format) (15306.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 (15235.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 (12319.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) (12306.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] (12149.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#[]... -
JSON
:: Ext :: Generator :: GeneratorMethods :: NilClass (12000.0) -
Alias of JSON::Generator::GeneratorMethods::NilClass
...Alias of JSON::Generator::GeneratorMethods::NilClass... -
JSON
:: Generator :: GeneratorMethods :: NilClass (12000.0) -
NilClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。
...NilClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。... -
Gem
:: Format . from _ file _ by _ path(file _ path , security _ policy = nil) -> Gem :: Format (9401.0) -
@todo security_policy
...@todo security_policy
Gem ファイルのパスからデータを読み込んで、自身を初期化して返します。
@param file_path Gem ファイルへのパスを指定します。
@param security_policy ???... -
Pathname
# realpath(basedir = nil) -> Pathname (9319.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 (9319.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
//}...