8840件ヒット
[1-100件を表示]
(0.065秒)
別のキーワード
ライブラリ
- English (154)
- ビルトイン (3080)
- benchmark (11)
- bigdecimal (14)
-
cgi
/ core (11) - csv (143)
- dbm (33)
- debug (11)
- drb (22)
-
drb
/ extservm (22) - e2mmap (12)
- etc (66)
- fiber (8)
- fiddle (33)
- find (20)
- gdbm (22)
- getoptlong (44)
-
io
/ console (11) -
irb
/ ext / save-history (11) - json (11)
- kconv (11)
- logger (33)
- matrix (397)
- mkmf (132)
-
net
/ ftp (174) -
net
/ http (308) -
net
/ imap (308) -
net
/ pop (77) -
net
/ smtp (28) -
net
/ telnet (12) - open-uri (103)
- openssl (407)
- optparse (308)
- ostruct (43)
- pathname (77)
- pp (11)
- pstore (11)
- psych (198)
- rake (55)
-
rake
/ packagetask (33) -
rdoc
/ context (33) -
rdoc
/ markup (11) -
rdoc
/ top _ level (11) - readline (22)
-
rexml
/ document (319) -
rinda
/ tuplespace (22) -
ripper
/ lexer (18) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ package / tar _ reader / entry (11) -
rubygems
/ remote _ fetcher (22) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (11) -
rubygems
/ user _ interaction (55) - scanf (12)
- sdbm (33)
- shell (18)
-
shell
/ command-processor (12) -
shell
/ filter (18) -
shell
/ process-controller (6) -
shell
/ system-command (12) - socket (66)
- stringio (276)
- strscan (187)
- syslog (11)
- tempfile (11)
-
test
/ unit (1) - time (22)
- tmpdir (11)
- tracer (33)
- tsort (95)
- uri (209)
-
webrick
/ httprequest (33) -
webrick
/ httpresponse (55) -
webrick
/ httputils (44) -
win32
/ registry (55) -
win32
/ resolv (11) - win32ole (176)
-
yaml
/ dbm (33) - zlib (198)
クラス
-
ARGF
. class (75) - Addrinfo (11)
- Array (30)
- BasicSocket (11)
- BigDecimal (2)
- CSV (77)
-
CSV
:: FieldInfo (11) -
CSV
:: Row (22) -
CSV
:: Table (22) - DBM (33)
-
DRb
:: DRbObject (11) -
DRb
:: DRbServer (11) -
DRb
:: ExtServManager (22) - Dir (109)
- Encoding (11)
-
Encoding
:: Converter (11) -
Etc
:: Group (11) -
Etc
:: Passwd (11) - Exception (11)
- Fiber (11)
-
Fiddle
:: Function (33) - File (33)
- Float (8)
- GDBM (22)
-
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: Package :: TarReader :: Entry (11) -
Gem
:: RemoteFetcher (22) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (11) -
Gem
:: StreamUI (55) - GetoptLong (44)
- Hash (77)
- IO (249)
-
IRB
:: Context (11) - Integer (7)
- LoadError (11)
- Logger (22)
-
Logger
:: LogDevice (11) - MatchData (44)
- Matrix (364)
-
Matrix
:: LUPDecomposition (11) - Method (11)
- Module (60)
-
Net
:: FTP (84) -
Net
:: FTP :: MLSxEntry (90) -
Net
:: HTTP (154) -
Net
:: HTTPGenericRequest (22) -
Net
:: HTTPResponse (44) -
Net
:: IMAP (22) -
Net
:: IMAP :: Address (44) -
Net
:: IMAP :: BodyTypeBasic (55) -
Net
:: IMAP :: BodyTypeMessage (55) -
Net
:: IMAP :: BodyTypeMultipart (11) -
Net
:: IMAP :: BodyTypeText (55) -
Net
:: IMAP :: ContentDisposition (11) -
Net
:: IMAP :: Envelope (44) -
Net
:: IMAP :: MailboxList (11) -
Net
:: POP3 (11) -
Net
:: POPMail (66) -
Net
:: SMTP (28) -
Net
:: Telnet (12) - Object (11)
-
OpenSSL
:: ASN1 :: BitString (11) -
OpenSSL
:: ASN1 :: Constructive (22) -
OpenSSL
:: ASN1 :: ObjectId (44) -
OpenSSL
:: Config (33) -
OpenSSL
:: Engine (11) -
OpenSSL
:: PKCS7 (11) -
OpenSSL
:: PKey :: DSA (66) -
OpenSSL
:: PKey :: EC :: Group (22) -
OpenSSL
:: PKey :: RSA (66) -
OpenSSL
:: SSL :: SSLContext (44) -
OpenSSL
:: SSL :: SSLSocket (11) -
OpenSSL
:: X509 :: Store (11) - OpenStruct (43)
- OptionParser (286)
- PStore (11)
- Pathname (77)
- Proc (11)
-
Psych
:: Nodes :: Mapping (22) -
Psych
:: Nodes :: Node (33) -
Psych
:: Nodes :: Scalar (22) -
Psych
:: Nodes :: Sequence (22) -
Psych
:: Stream (22) -
Psych
:: SyntaxError (11) -
Psych
:: Visitors :: YAMLTree (22) -
RDoc
:: Context (11) -
RDoc
:: Context :: Section (22) -
RDoc
:: Markup (11) -
RDoc
:: Options (66) -
RDoc
:: TopLevel (11) -
REXML
:: AttlistDecl (11) -
REXML
:: Attribute (11) -
REXML
:: Attributes (55) -
REXML
:: DocType (55) -
REXML
:: Element (44) -
REXML
:: Entity (77) -
REXML
:: Instruction (11) -
REXML
:: NotationDecl (22) -
REXML
:: XMLDecl (33) -
Rake
:: FileList (22) -
Rake
:: PackageTask (33) - Rational (11)
- Regexp (99)
-
Rinda
:: TupleEntry (11) -
Rinda
:: TupleSpace (11) - Ripper (18)
-
RubyVM
:: InstructionSequence (33) - SDBM (33)
- Shell (18)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6) -
Shell
:: SystemCommand (12) - String (1022)
- StringIO (276)
- StringScanner (187)
- Struct (146)
- Symbol (121)
- Tempfile (11)
- Thread (66)
-
Thread
:: Backtrace :: Location (44) - Time (22)
- TracePoint (150)
- Tracer (44)
- TrueClass (11)
- UNIXSocket (44)
-
URI
:: FTP (11) -
URI
:: Generic (143) - UnboundMethod (11)
- Vector (22)
-
WEBrick
:: HTTPRequest (33) -
WEBrick
:: HTTPResponse (55) -
WEBrick
:: HTTPUtils :: FormData (33) -
WIN32OLE
_ METHOD (33) -
WIN32OLE
_ TYPE (88) -
WIN32OLE
_ VARIABLE (55) -
Win32
:: Registry (55) -
Win32
:: Resolv (11) -
YAML
:: DBM (33) -
Zlib
:: Deflate (22) -
Zlib
:: GzipFile (22) -
Zlib
:: GzipFile :: Error (11) -
Zlib
:: GzipReader (44) -
Zlib
:: GzipWriter (88) -
Zlib
:: Inflate (11)
モジュール
- Benchmark (11)
-
CGI
:: QueryExtension (11) - Enumerable (22)
- Etc (44)
- Exception2MessageMapper (12)
- Find (20)
- JSON (11)
- Kconv (11)
- Kernel (809)
-
Net
:: HTTPHeader (88) -
OpenSSL
:: ASN1 (11) -
OpenSSL
:: Buffering (44) - OpenURI (11)
-
OpenURI
:: Meta (55) -
OpenURI
:: OpenRead (22) -
OptionParser
:: Arguable (22) - Process (11)
- Psych (44)
-
Rake
:: TaskManager (22) - Readline (11)
- Signal (33)
- Syslog (11)
- TSort (95)
-
Test
:: Unit (1) - URI (62)
-
WEBrick
:: HTTPUtils (11)
オブジェクト
- ENV (84)
-
Readline
:: HISTORY (11) - main (8)
キーワード
-
$ & (11) -
$ & # 39; (11) -
$ + (11) -
$ , (11) -
$ -0 (11) -
$ -F (11) -
$ -i (11) -
$ / (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ ; (11) -
$ @ (11) -
$ ERROR _ POSITION (11) -
$ FIELD _ SEPARATOR (11) -
$ FS (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ MATCH (11) -
$ OFS (11) -
$ ORS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ RS (11) -
$ \ (11) -
$ _ (11) -
$ ` (11) - * (33)
- + (11)
- +@ (9)
- -@ (9)
- << (11)
- <=> (11)
- == (11)
- =~ (22)
- BigDecimal (12)
- Complex (12)
- Float (6)
- Integer (6)
-
NEWS for Ruby 3
. 0 . 0 (4) - Rational (6)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Rubyの起動 (11)
- [] (264)
-
_ _ dir _ _ (11) -
_ _ drburi (11) -
absolute
_ path (22) - accept (22)
-
add
_ filter (22) -
add
_ trace _ func (11) - addr (11)
- alert (11)
-
alert
_ error (11) -
alert
_ warning (11) - all (22)
- anchor (33)
-
arg
_ config (11) -
asciicompat
_ encoding (11) - ask (11)
- attribute (11)
-
attribute
_ of (11) - autoload? (22)
- backtrace (11)
-
backtrace
_ locations (22) -
base
_ label (11) - benchmark (11)
- binding (11)
- binread (22)
- binwrite (11)
- body (44)
-
body
_ stream (11) -
body
_ stream= (11) - build (22)
- byteindex (2)
- byterindex (2)
- bytes (36)
- byteslice (33)
-
ca
_ file (22) -
ca
_ path (22) - call (11)
-
callee
_ id (11) - caller (33)
-
caller
_ locations (22) - canonname (11)
- capitalize! (11)
- casecmp (11)
- casecmp? (8)
- certs (11)
- cgi (11)
- chars (36)
- charset (31)
- check (11)
-
check
_ until (11) - children (6)
- chomp! (11)
- chop! (11)
- chr (11)
- ciphers (11)
- cmd (4)
- codepoints (36)
- cofactor (11)
-
cofactor
_ expansion (11) -
col
_ sep (11) - collect (22)
- collect! (12)
- column (22)
- combine (21)
- command (11)
- comment (22)
- compile (11)
- confstr (11)
- content (11)
-
content
_ encoding (11) -
content
_ id (33) -
content
_ type (44) - convert (11)
- create (9)
-
create
_ body (11) -
curve
_ name (11) - date (11)
-
datetime
_ format (11) - debug (11)
- dedup (2)
-
default
_ executable (11) -
defined
_ class (11) - deflate (11)
- delete (33)
- delete! (11)
-
delete
_ at (11) -
delete
_ attribute (11) -
delete
_ prefix! (7) -
delete
_ suffix! (7) - delim (11)
- description (33)
-
det
_ e (11) -
determinant
_ e (11) - dig (18)
- dir (11)
- disasm (11)
- disassemble (11)
- downcase! (11)
- dump (11)
- each (110)
-
each
_ active _ object (6) -
each
_ attribute (22) -
each
_ byte (44) -
each
_ char (44) -
each
_ child (22) -
each
_ codepoint (44) -
each
_ element _ with _ attribute (11) -
each
_ entry (35) -
each
_ grapheme _ cluster (14) -
each
_ key (11) -
each
_ line (44) -
each
_ pair (44) -
each
_ strongly _ connected _ component (42) -
each
_ strongly _ connected _ component _ from (42) -
each
_ with _ index (22) - echo (18)
-
enable
_ config (22) - encode (33)
- encoding (11)
- entity (22)
- environment (11)
-
error
_ string (22) - escape (11)
-
eval
_ script (6) - event (11)
-
event
_ interface (11) - exclude (11)
- exist? (11)
- export (44)
- external (11)
-
external
_ id (11) -
extra
_ accessors (11) -
extra
_ chain _ cert (11) - extract (44)
- facts (9)
- fetch (77)
-
fetch
_ path (11) - file (11)
- filename (33)
- filter (12)
- find (40)
-
find
_ executable (11) -
find
_ index (33) -
find
_ local _ symbol (11) - finish (11)
- formatter (11)
- fragment (11)
- generate (11)
-
generate
_ line (11) -
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ byte (11) -
get
_ hosts _ path (11) -
get
_ path (11) -
get
_ value (11) - getbyte (33)
- getc (55)
- getch (11)
- getlogin (11)
- getrlimit (11)
- gets (110)
- glob (15)
-
grapheme
_ clusters (14) - gsub (66)
- gsub! (44)
- guess (11)
- guid (11)
- header (11)
- headers (11)
- help (11)
- helpfile (22)
- helpstring (22)
-
history
_ file (11) - home (22)
- host (22)
- hostname (22)
- ident (11)
-
in
_ reply _ to (11) - index (84)
-
inplace
_ mode (11) - input (11)
- inspect (44)
-
instruction
_ sequence (6) - key (55)
-
keyword
_ init? (3) - lang (9)
- language (44)
-
laplace
_ expansion (11) -
last
_ comment (11) -
last
_ description (11) -
last
_ match (11) - lex (7)
- libpathflag (11)
- lineno (11)
- lines (36)
-
link
_ command (11) - list (11)
- ln (11)
- load (11)
-
load
_ stream (22) -
local
_ host (11) -
local
_ port (11) -
locale
_ charmap (11) - login (4)
-
long
_ name (11) - ls (11)
- lstrip! (11)
- mail (22)
- mailbox (11)
-
main
_ page (11) -
main
_ type (11) - map (22)
- map! (12)
- match (44)
- match? (11)
- matched (11)
-
matched
_ size (11) - matchedsize (11)
- md5 (33)
-
media
_ type (9) - merge (11)
-
method
_ id (11) - mktmpdir (11)
- mlsd (18)
- modify (9)
-
module
_ function (4) - name (66)
- namespace (11)
- ndata (11)
- new (90)
- normalize! (11)
- normalized (11)
- notify (29)
-
ole
_ type (22) -
ole
_ type _ detail (11) - on (33)
- opaque (11)
- open (92)
-
open
_ uri (11) -
open
_ uri _ or _ path (11) - order (44)
- order! (44)
-
orig
_ name (11) - pack (19)
-
package
_ dir (11) -
package
_ dir _ path (11) - param (44)
- parameters (6)
- parse (44)
- parse! (11)
-
parse
_ csv (11) -
parse
_ stream (22) - password (11)
- path (79)
- pathmap (11)
- peeraddr (11)
- perm (9)
- permute (22)
- permute! (11)
- pipe (22)
- pop (22)
- port (11)
-
post
_ match (11) -
pre
_ match (11) - pread (7)
-
pretty
_ print _ instance _ variables (11) - print (11)
- private (8)
- progid (11)
- progids (11)
-
program
_ name (11) -
progress
_ reporter (11) - protected (4)
-
proxy
_ address (22) -
proxy
_ pass (22) -
proxy
_ uri (11) -
proxy
_ user (22) - proxyaddr (11)
- ptr (11)
- pubid (11)
- public (30)
- puts (11)
- pwrite (7)
- query (11)
- quiet (11)
- quiet? (11)
-
raised
_ exception (11) - raw (11)
- read (143)
-
read
_ body (22) -
read
_ nonblock (31) - readline (22)
- readlines (33)
- readpartial (11)
- ready (11)
-
reason
_ phrase (11) - recvfrom (11)
- recvmsg (11)
- ref (11)
- registry (11)
- reject (11)
- release (11)
-
request
_ method (11) - retrbinary (22)
- retrlines (11)
-
return
_ value (11) -
rexml
/ parsers / ultralightparser (11) - rindex (11)
- route (11)
- row (22)
-
row
_ sep (11) - rstrip! (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 9 feature (11) - scan (33)
-
scan
_ until (11) - scanf (12)
- scheme (11)
- scrub (33)
- scrub! (33)
- seed (11)
- select (44)
-
session
_ id _ context (11) -
set
_ backtrace (11) -
set
_ dictionary (22) -
set
_ trace _ func (22) -
setup
_ argv (1) - shift (11)
-
short
_ name (11) - signame (11)
- size (9)
- skip (11)
-
skip
_ until (11) - slice (132)
- sn (11)
- solve (11)
- source (11)
-
source
_ location (33) - split (23)
- squeeze! (11)
-
src
_ type (11) -
ssl
_ version (11) -
stand
_ alone? (11) - standalone (11)
- start (28)
- status (22)
- store (11)
- strip! (11)
-
strongly
_ connected _ components (11) - strptime (22)
- sub (55)
- sub! (33)
-
sub
_ type (11) - subject (11)
- sum (11)
-
summary
_ indent (11) - swapcase! (11)
- sysconfdir (11)
- system (22)
- systmpdir (11)
- syswrite (11)
- tag (44)
- tagging (11)
-
template
_ dir (11) - terminated? (11)
- text (11)
- title (22)
-
to
_ a (11) -
to
_ csv (11) -
to
_ h (24) -
to
_ path (24) -
to
_ pem (44) -
to
_ s (116) -
to
_ yaml (11) - tr! (11)
-
tr
_ s! (11) - trace (22)
-
trace
_ func (22) -
trace
_ var (33) - tracer (11)
- transact (18)
- transaction (11)
- transfer (11)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - trap (44)
- traverse (11)
- tree (11)
- truncate (34)
-
try
_ constant (22) -
try
_ convert (58) -
try
_ file (11) -
try
_ run (22) - type (9)
- typecode (11)
- typelibs (11)
-
uid
_ store (11) - unique (9)
- unnormalized (11)
- unpack (11)
-
untrace
_ var (11) - unused (11)
-
unused
_ bits (11) - upcase! (11)
- upto (11)
- uri (22)
- user (11)
- userinfo (11)
- value (44)
-
variable
_ kind (11) - ver (11)
- waitfor (4)
- webcvs (11)
-
with
_ config (22) - wrap (22)
- write (22)
-
write
_ nonblock (11) - yaml (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 制御構造 (11)
検索結果
先頭5件
-
Matrix
# tr -> Integer | Float | Rational | Complex (21507.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
TrueClass
# |(other) -> bool (21242.0) -
常に true を返します。
... true を返します。
@param other 論理和を行なう式です。
| は再定義可能な演算子に分類されていますので、通常は true | other のように使われます。
//emlist[例][ruby]{
p true | true #=> true
p true | false #=> true
p true | nil #=> true
p...... true | (1 == 1) #=> true
p true | (1 + 1) #=> true
p true.|(true) #=> true
p true.|(false) #=> true
p true.|(nil) #=> true
p true.|(1 == 1) #=> true
p true.|(1 + 1) #=> true
//}... -
Vector
# -(v) -> Vector | Matrix (18301.0) -
self からベクトル v を減じたベクトルを返します。
...には column_size が 1 の Matrix オブジェクトも指定できます。
その場合は返り値も Matrix オブジェクトになります。
@param v 減算するベクトル。減算可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 自... -
Matrix
# trace -> Integer | Float | Rational | Complex (9507.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9413.0) -
各属性に対しブロックを呼び出します。
...各属性に対しブロックを呼び出します。
個々の属性は REXML::Attribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a fo......o:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
TracePoint
. trace(*events) {|obj| . . . } -> TracePoint (9413.0) -
新しい TracePoint オブジェクトを作成して自動的にトレースを開始し ます。TracePoint.new のコンビニエンスメソッドです。
...新しい TracePoint オブジェクトを作成して自動的にトレースを開始し
ます。TracePoint.new のコンビニエンスメソッドです。
@param events トレースするイベントを String か Symbol で任
意の数指定します。指定できる値に......ついては
TracePoint.new を参照してください。
//emlist[例][ruby]{
trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
# => #<TracePoint:0x007f786a452448>
trace.enabled? # => true
//}
@raise ThreadError ブロックを指定しなかった場合に発生し... -
String
# tr _ s!(pattern , replace) -> self | nil (9404.0) -
文字列の中に pattern 文字列に含まれる文字が存在したら、 replace 文字列の対応する文字に置き換えます。さらに、 置換した部分内に同一の文字の並びがあったらそれを 1 文字に圧縮します。
...は tr(1) と同じです。
つまり「a-c」は a から c を意味し、
"^0-9" のように文字列の先頭が「^」の場合は指定した文字以外が置換の対象になります。
replace でも「-」を使って範囲を指定できます。
//emlist[][ruby]{
p "gooooogle".tr_s......("a-z", "A-Z") # => "GOGLE"
//}
「-」は文字列の両端にない場合にだけ範囲指定の意味になります。
同様に、「^」もその効果は文字列の先頭にあるときだけです。
また、「-」、「^」、「\」はバックスラッシュ (「\」) でエスケ......われます。
tr_s は置換後の文字列を生成して返します。
tr_s! は self を変更して返しますが、
置換が起こらなかった場合は nil を返します。
注意:
一般に、tr_s! を tr! と squeeze! で置き換えることはできません。
tr! と squeeze!... -
Psych
:: Visitors :: YAMLTree # tree -> Psych :: Nodes :: Stream|nil (9401.0) -
変換を終了し、構築した AST を返します。
...変換を終了し、構築した AST を返します。
内部で finish を呼び出し、変換処理を終了します。
このメソッドを2回以上呼ぶと、2回目以降は nil を返します。
@see Psych::Visitors::YAMLTree#finish... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9401.0) -
name という名前の属性を取得します。
...ML::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'
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9401.0) -
namespace と name で特定される属性を返します。
...XML::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_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://exa......mple.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}...