9721件ヒット
[1-100件を表示]
(0.160秒)
ライブラリ
- ビルトイン (3255)
- abbrev (12)
- benchmark (84)
- bigdecimal (48)
-
bigdecimal
/ util (36) -
cgi
/ core (12) -
cgi
/ html (252) - csv (60)
- date (144)
- dbm (24)
- delegate (192)
- digest (24)
-
fiddle
/ import (12) - forwardable (144)
- gdbm (24)
- ipaddr (12)
-
irb
/ context (60) -
irb
/ ext / math-mode (12) -
irb
/ input-method (36) - json (204)
- logger (24)
- matrix (274)
-
minitest
/ spec (1) - mkmf (120)
-
net
/ ftp (82) -
net
/ http (108) -
net
/ imap (96) - observer (24)
- openssl (500)
- optparse (36)
- pathname (540)
- prime (96)
- rake (144)
-
rdoc
/ code _ object (12) -
rdoc
/ context (48) -
rdoc
/ markup (36) -
rdoc
/ top _ level (12) -
rexml
/ document (612) -
rexml
/ parsers / pullparser (36) -
rexml
/ sax2listener (24) -
rexml
/ streamlistener (12) -
rinda
/ rinda (12) -
ripper
/ filter (24) -
ripper
/ lexer (16) - rss (528)
-
rubygems
/ commands / update _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ custom _ require (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ indexer (12) -
rubygems
/ installer (60) -
rubygems
/ package / tar _ writer (12) -
rubygems
/ platform (36) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ requirement (12) -
rubygems
/ security (12) -
rubygems
/ source _ index (12) -
rubygems
/ specification (300) -
rubygems
/ uninstaller (12) -
rubygems
/ user _ interaction (12) - sdbm (24)
- shell (42)
-
shell
/ builtin-command (6) -
shell
/ command-processor (18) -
shell
/ filter (18) -
shell
/ process-controller (6) - socket (72)
- stringio (31)
- strscan (36)
-
syslog
/ logger (24) - uri (36)
-
webrick
/ httpauth / authenticator (36) -
webrick
/ httpauth / basicauth (12) -
webrick
/ httpauth / digestauth (12) -
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htgroup (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (48) -
webrick
/ httpresponse (60) -
webrick
/ https (24) -
webrick
/ httpserver (12) -
webrick
/ httputils (132) -
webrick
/ log (48) -
webrick
/ server (12) -
win32
/ registry (12) - win32ole (24)
-
yaml
/ dbm (48) - zlib (216)
クラス
-
ARGF
. class (19) - Addrinfo (24)
- Array (315)
- BasicSocket (24)
-
Benchmark
:: Tms (84) - BigDecimal (48)
- Bignum (33)
- Binding (7)
- CSV (24)
-
CSV
:: Row (24) -
CSV
:: Table (12) - Class (24)
- DBM (24)
- Data (15)
- Date (144)
- Delegator (156)
-
Digest
:: Base (24) - Encoding (12)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) - Enumerator (132)
-
Enumerator
:: ArithmeticSequence (21) -
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (187) -
Enumerator
:: Yielder (24) - Exception (12)
-
File
:: Stat (276) - Fixnum (24)
- Float (176)
- GDBM (24)
-
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: DependencyList (12) -
Gem
:: GemPathSearcher (24) -
Gem
:: Indexer (12) -
Gem
:: Installer (60) -
Gem
:: Package :: TarWriter :: BoundedStream (12) -
Gem
:: Platform (36) -
Gem
:: Requirement (12) -
Gem
:: Security :: Policy (12) -
Gem
:: SourceIndex (12) -
Gem
:: Specification (300) -
Gem
:: StreamUI :: VerboseProgressReporter (12) -
Gem
:: Uninstaller (12) - Hash (219)
- IO (43)
- IPAddr (12)
-
IRB
:: Context (72) -
IRB
:: InputMethod (12) -
IRB
:: ReadlineInputMethod (12) -
IRB
:: StdioInputMethod (12) -
JSON
:: State (168) - Logger (24)
- MatchData (94)
- Matrix (250)
-
Matrix
:: LUPDecomposition (24) - Module (144)
-
Net
:: FTP (72) -
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (108) -
Net
:: IMAP (36) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: MailboxList (12) -
Net
:: IMAP :: ResponseCode (12) -
Net
:: IMAP :: StatusData (12) -
Net
:: IMAP :: UntaggedResponse (12) - NoMethodError (9)
- Numeric (72)
- Object (100)
-
OpenSSL
:: ASN1 :: ASN1Data (24) -
OpenSSL
:: BN (8) -
OpenSSL
:: Engine (12) -
OpenSSL
:: OCSP :: BasicResponse (24) -
OpenSSL
:: OCSP :: CertificateId (36) -
OpenSSL
:: PKCS7 (12) -
OpenSSL
:: PKey :: DSA (24) -
OpenSSL
:: PKey :: EC (36) -
OpenSSL
:: PKey :: PKey (12) -
OpenSSL
:: PKey :: RSA (12) -
OpenSSL
:: SSL :: SSLContext (36) -
OpenSSL
:: SSL :: SSLServer (24) -
OpenSSL
:: X509 :: Attribute (60) -
OpenSSL
:: X509 :: Certificate (96) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: Request (36) - OptionParser (36)
- Pathname (540)
- Prime (36)
-
Prime
:: PseudoPrimeGenerator (60) -
Process
:: Status (72) -
RDoc
:: CodeObject (12) -
RDoc
:: Context (48) -
RDoc
:: Markup (36) -
RDoc
:: Options (24) -
RDoc
:: TopLevel (12) -
REXML
:: AttlistDecl (24) -
REXML
:: Attribute (168) -
REXML
:: Attributes (180) -
REXML
:: DocType (24) -
REXML
:: Element (132) -
REXML
:: Elements (48) -
REXML
:: Formatters :: Pretty (12) -
REXML
:: NotationDecl (24) -
REXML
:: Parsers :: PullEvent (36) -
RSS
:: Maker :: ChannelBase (132) -
RSS
:: Maker :: ChannelBase :: CategoriesBase (12) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (48) -
RSS
:: Maker :: ItemsBase :: ItemBase (96) -
RSS
:: Rss :: Channel (48) -
RSS
:: Rss :: Channel :: Item (24) -
Rake
:: FileCreationTask (12) -
Rake
:: FileList (60) -
Rake
:: InvocationChain (24) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) - Range (12)
- Rational (60)
- Regexp (33)
-
Rinda
:: DRbObjectTemplate (12) -
Ripper
:: Filter (24) -
Ripper
:: Lexer (16) -
RubyVM
:: InstructionSequence (34) - SDBM (24)
- Shell (42)
-
Shell
:: CommandProcessor (18) -
Shell
:: Concat (6) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6) - SimpleDelegator (24)
-
Socket
:: AncillaryData (12) - StopIteration (12)
- String (264)
- StringIO (31)
- StringScanner (36)
- Struct (31)
- Symbol (21)
-
Syslog
:: Logger (24) - Thread (57)
-
Thread
:: Backtrace :: Location (84) - Time (36)
- UDPSocket (12)
-
URI
:: Generic (12) -
URI
:: LDAP (24) - UnboundMethod (12)
-
WEBrick
:: BasicLog (24) -
WEBrick
:: Cookie (24) -
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPAuth :: BasicAuth (12) -
WEBrick
:: HTTPAuth :: DigestAuth (12) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htgroup (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (72) -
WEBrick
:: HTTPResponse (60) -
WEBrick
:: HTTPServer :: MountTable (12) -
WEBrick
:: HTTPUtils :: FormData (132) -
WEBrick
:: Log (24) -
WIN32OLE
_ TYPELIB (24) -
Win32
:: Registry (12) -
YAML
:: DBM (48) -
Zlib
:: Deflate (72) -
Zlib
:: GzipFile (12) -
Zlib
:: GzipReader (36) -
Zlib
:: GzipWriter (12) -
Zlib
:: Inflate (72) -
Zlib
:: ZStream (12)
モジュール
-
CGI
:: HtmlExtension (252) -
CGI
:: QueryExtension (12) - DublinCoreModel (144)
- Enumerable (544)
-
Fiddle
:: Importer (12) - FileUtils (24)
- Forwardable (72)
- GC (12)
-
Gem
:: RequirePathsBuilder (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) - Kernel (144)
- Observable (24)
-
OpenSSL
:: Buffering (12) -
REXML
:: SAX2Listener (24) -
REXML
:: StreamListener (12) -
RSS
:: SyndicationModel (24) - SingleForwardable (72)
-
WEBrick
:: HTTPAuth :: Authenticator (36)
キーワード
- ! (12)
- != (12)
- % (6)
- * (6)
- ** (6)
- + (6)
- - (6)
-
/ (6) - < (12)
- << (60)
- <= (12)
- == (118)
- === (48)
- =~ (12)
- > (12)
- >= (12)
- DelegateClass (12)
- [] (72)
- []= (12)
-
_ _ getobj _ _ (24) -
_ _ setobj _ _ (24) - abbrev (12)
- abbreviate (12)
-
abort
_ on _ exception= (12) - abs (21)
- absolute? (12)
-
absolute
_ path (24) - add (12)
-
add
_ attribute (48) -
add
_ attributes (12) -
add
_ bindir (12) -
add
_ observer (12) -
add
_ special (12) -
add
_ status (12) - all? (15)
- allocate (12)
-
allow
_ nan? (12) - antisymmetric? (7)
- any? (16)
- append (24)
-
append
_ data (12) -
ascii
_ compatible? (12) -
ascii
_ only? (12) - attlistdecl (12)
- attlistdecl? (12)
- attr (36)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - attribute (12)
-
attribute
_ manager (12) -
attribute
_ of (12) - attributes (60)
- attributes= (24)
-
attributes
_ of (12) - authenticate (24)
- autorequire= (12)
-
backtrace
_ locations (36) -
base
_ label (12) - basename (12)
- begin (19)
- bind (12)
- bindir (12)
- bindir= (12)
- binread (12)
- binwrite (12)
- birthtime (23)
- blksize (12)
- blockdev? (24)
- blocks (12)
- bsearch (24)
-
bsearch
_ index (10) -
buffer
_ initial _ length (12) -
buffer
_ initial _ length= (12) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (21)
- categories (24)
- cd (6)
- cdata? (12)
- chain (7)
- changed (12)
- chardev? (24)
- chdir (6)
-
check
_ circular? (12) -
check
_ private _ key (12) - checkbox (12)
-
checkbox
_ group (12) - chunk (12)
-
chunk
_ while (21) -
client
_ cert (12) - clone (12)
- cmp (12)
-
cmp
_ issuer (12) -
cmsg
_ is? (12) -
cofactor
_ expansion (12) - collect (24)
-
collect
_ concat (36) - combination (24)
- combine (8)
- compact (12)
- concat (36)
-
const
_ source _ location (12) - content (12)
- content= (12)
- convert (12)
- coredump? (12)
- creatable? (10)
- create (24)
-
create
_ body (12) -
create
_ extension (12) - cstime (12)
- cutime (12)
- cycle (24)
- data (24)
-
data
_ type (12) - date (24)
- date= (24)
-
dc
_ creator (12) -
dc
_ creator= (12) -
dc
_ creators (12) -
dc
_ date (12) -
dc
_ date= (12) -
dc
_ dates (12) -
dc
_ format (12) -
dc
_ format= (12) -
dc
_ formats (12) -
dc
_ relation (12) -
dc
_ relation= (12) -
dc
_ relations (12) - deconstruct (3)
-
def
_ delegator (24) -
def
_ delegators (24) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) -
default
_ executable (12) -
default
_ executable= (12) - deflate (12)
- delegate (24)
- delete (12)
-
delete
_ all (12) -
delete
_ at (12) -
delete
_ attribute (12) -
destination
_ encoding (12) -
destination
_ encoding _ name (12) - detect (12)
- diagonal? (12)
- directory? (24)
- div (6)
-
do
_ rubygems _ update (12) - domain (12)
- domain= (12)
-
drop
_ while (12) -
dsa
_ verify _ asn1 (12) - each (145)
-
each
_ attribute (24) -
each
_ byte (60) -
each
_ cons (12) -
each
_ data (12) -
each
_ element _ with _ attribute (12) -
each
_ entry (12) -
each
_ key (12) -
each
_ line (12) -
each
_ pair (12) -
each
_ slice (12) -
each
_ value (12) -
each
_ with _ index (12) -
each
_ with _ object (12) -
egrep
_ cpp (24) - element (12)
- element= (12)
- empty? (21)
- enclosure (12)
-
enum
_ for (36) - eql? (51)
- evaluate (12)
- exclude (12)
-
exclude
_ end? (7) - executable (12)
- executable= (12)
- executable? (24)
-
executable
_ real? (24) - executables (12)
- executables= (12)
- exist? (12)
- exited? (12)
- fatal (24)
- fatal? (36)
- fdiv (3)
- feed (12)
-
fetch
_ values (22) - field? (12)
- file (12)
- file? (24)
-
file
_ field (12) - filename (12)
- filename= (12)
- filter (21)
- filter! (14)
-
filter
_ map (6) - find (12)
-
find
_ all (12) -
find
_ executable (12) -
find
_ header (12) -
find
_ index (12) -
find
_ library (24) -
find
_ local _ symbol (12) - finish (24)
- finite? (12)
-
flat
_ map (36) - flush (48)
- fnmatch (12)
- fnmatch? (12)
- force (12)
-
force
_ update (12) - foreach (18)
- form (24)
- format (12)
- formatter (12)
- friday? (12)
-
garbage
_ collect (12) - generate (12)
-
generate
_ bin (12) -
generate
_ bin _ script (12) -
generate
_ bin _ symlink (12) -
generate
_ windows _ script (12) - generator (12)
- generator= (12)
- get (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - getbinaryfile (12)
- glob (34)
- gregorian? (12)
- grep (24)
-
grep
_ v (24) -
group
_ by (12) - grpowned? (24)
- gsub (60)
- gsub! (60)
- guid (12)
-
has
_ attributes? (12) -
has
_ rdoc (12) -
has
_ rdoc? (12) -
has
_ test _ suite? (12) -
has
_ unit _ tests? (12) - hermitian? (12)
- hidden (12)
- html (24)
- img (12)
- include? (12)
- index (7)
- inflate (12)
- inject (12)
- inspect (12)
-
installation
_ satisfies _ dependency? (12) -
instance
_ delegate (12) -
ipv4
_ compat? (12) -
ipv4
_ private? (12) -
ipv6
_ v4compat? (12) -
irb
_ path (12) -
irb
_ path= (12) - isatty (24)
-
json
_ creatable? (12) - julian? (12)
-
keep
_ if (24) - key (12)
- label (12)
-
laplace
_ expansion (12) - lastBuildDate (24)
- lastBuildDate= (24)
- lazy (12)
- leap? (12)
- length (12)
- lex (8)
-
lib
_ dirs _ for (12) -
lib
_ files (12) - libpathflag (12)
- lineno (12)
-
link
_ command (12) - list (12)
-
load
_ public _ key (12) - loaded? (12)
- lock (12)
- logger (12)
-
lower
_ triangular? (12) - magnitude (21)
- mailbox (12)
- map (12)
-
marshal
_ dump (12) -
marshal
_ load (12) - match (48)
- match? (39)
- matched? (12)
-
matched
_ size (12) -
matching
_ file? (12) - math? (4)
-
math
_ mode (4) -
math
_ mode= (4) -
max
_ by (24) - member? (24)
- members (3)
-
method
_ missing (12) - methods (12)
-
min
_ by (24) -
minmax
_ by (12) - mkcol (12)
- modulo (6)
- monday? (12)
- mountpoint? (12)
- move (12)
-
multipart
_ form (24) -
must
_ match (1) - name (12)
- name= (12)
-
named
_ captures (12) - namespace (12)
- namespaces (12)
- nan? (12)
- needed? (12)
- negative? (37)
-
new
_ category (12) - next (12)
-
node
_ type (24) - none? (15)
- normal? (12)
- normalized= (12)
-
not
_ before (12) -
not
_ before= (12) - notationdecl (12)
- notationdecl? (12)
-
object
_ nl (12) -
object
_ nl= (12) - oid (12)
- oid= (12)
- on (36)
-
on
_ XXX (12) -
on
_ default (12) - one? (15)
- open (12)
- orthogonal? (12)
- owned? (24)
- pack (21)
- params (12)
- parse (8)
- partition (12)
-
password
_ field (12) - patch (12)
- path (72)
- path= (12)
-
path
_ info (12) -
path
_ info= (12) -
path
_ ok? (12) - pathmap (12)
- peek (12)
- permutation (12)
- permutation? (12)
- pipe? (24)
- positive? (19)
- post (12)
- prefix (12)
- prefixes (12)
-
prepend
_ features (12) - prime? (12)
-
primitive
_ convert (48) - printf (36)
- private (48)
- private? (24)
-
private
_ call? (9) -
private
_ instance _ methods (12) -
private
_ key (12) -
private
_ key? (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - propfind (12)
- proppatch (12)
-
protected
_ methods (12) - pubDate (48)
- pubDate= (48)
- public (12)
- public= (12)
-
public
_ key (12) -
public
_ key= (12) -
public
_ methods (12) - pushd (6)
- pushdir (6)
- put (12)
- putbinaryfile (12)
-
quirks
_ mode (12) -
quirks
_ mode= (12) -
quirks
_ mode? (12) -
radio
_ group (12) - readable? (24)
-
readable
_ atfer _ eof? (36) -
readable
_ real? (24) - real (12)
- real? (12)
- realdirpath (12)
- realm (12)
- realpath (12)
-
recvfrom
_ nonblock (12) - recvmsg (12)
-
recvmsg
_ nonblock (12) - regexp (12)
- regular? (12)
- reject (12)
- relative? (24)
-
relative
_ path _ from (12) - remainder (3)
- remove (12)
-
remove
_ by _ name (12) -
remove
_ const (12) -
renegotiation
_ cb (12) -
renegotiation
_ cb= (12) -
repeated
_ combination (24) -
report
_ on _ exception= (9) - require (12)
-
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) - reset (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (24) - result (12)
- retrbinary (12)
-
return
_ format (12) -
return
_ format= (12) -
reverse
_ each (24) - rewind (7)
- root? (12)
- rotate (12)
- rotate! (12)
- ruby (12)
-
ruby2
_ keywords (12) -
rubygems
_ version (12) -
rubygems
_ version= (12) -
satisfied
_ by? (12) -
satisfies
_ requirement? (12) - saturday? (24)
- scan (36)
-
scrolling
_ list (12) - select (60)
- select! (24)
- serial (12)
-
server
_ cert (12) -
session
_ cache _ stats (12) -
set
_ dictionary (24) -
set
_ error (12) -
set
_ redirect (12) - setgid? (24)
- setuid? (24)
- signaled? (12)
-
single
_ delegate (12) - singular? (24)
- size (12)
- size? (12)
-
skew
_ symmetric? (7) -
slice
_ after (35) -
slice
_ before (60) -
slice
_ when (23) - socket? (24)
- solve (12)
-
sort
_ by (12) -
sort
_ by! (12) - source (12)
-
source
_ location (19) -
space
_ before (12) -
space
_ before= (12) -
split
_ all (12) - square? (12)
-
start
_ element (12) -
start
_ immediately (12) -
start
_ immediately= (12) - status (60)
- status= (12)
-
status
_ line (12) - step (62)
- sticky? (24)
- stime (12)
- stopped? (12)
- storbinary (12)
- strftime (24)
- sub (72)
- sub! (48)
-
sub
_ ext (12) - subject (12)
- subject= (12)
-
subject
_ certificate (12) -
subject
_ certificate= (12) - submit (12)
- subsec (12)
- success? (12)
- sunday? (12)
-
sy
_ updateBase (12) -
sy
_ updateBase= (12) - symlink? (12)
- symmetric? (12)
- sync (12)
-
sync
_ point? (12) - sysverify (12)
-
tag
_ class (12) -
take
_ while (36) -
terminate
_ job (6) - text (12)
-
text
_ field (12) - textarea (12)
- then (7)
- thursday? (12)
-
time
_ format (12) -
time
_ format= (12) -
to
_ a (24) -
to
_ ary (12) -
to
_ binary (10) -
to
_ d (36) -
to
_ der (12) -
to
_ enum (36) -
to
_ f (15) -
to
_ h (3) -
to
_ json (12) -
to
_ json _ raw _ object (12) -
to
_ r (12) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (48) -
to
_ string (12) - total (12)
-
transform
_ keys (8) -
transform
_ keys! (8) -
transform
_ values (9) -
transform
_ values! (9) - truncate (24)
-
try
_ static _ assert (24) - tty? (24)
- tuesday? (12)
- unitary? (12)
- unlock (12)
- unpack (12)
- unpack1 (9)
- update (96)
-
update
_ sources (12) - updated (12)
-
upper
_ bound (12) -
upper
_ bound= (12) -
upper
_ triangular? (12) - userdb (12)
- utime (12)
- validate (12)
- value (36)
- value= (12)
-
values
_ at (120) - verify (36)
-
verify
_ data (12) - version (12)
- visibility (24)
- wednesday? (12)
-
with
_ index (36) -
with
_ object (48) -
world
_ readable? (24) -
world
_ writable? (24) - writable? (24)
-
writable
_ real? (24) - write (24)
-
write
_ require _ paths _ file _ if _ needed (12) - xpath (24)
- yield (12)
-
yield
_ self (8) - zero? (48)
- zip (24)
検索結果
先頭5件
-
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (27601.0) -
各属性に対しブロックを呼び出します。
...ML::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 foo: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", "<"]
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (27501.0) -
name という名前の属性を取得します。
...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("at......t") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (27501.0) -
namespace と name で特定される属性を返します。
...ist[][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_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.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
RSS
:: Maker :: ItemsBase :: ItemBase # pubDate (27301.0) -
@todo item.dateの別名です.
...@todo
item.dateの別名です.... -
RSS
:: Maker :: ItemsBase :: ItemBase # pubDate=() (27301.0) -
@todo item.date=の別名です.
...@todo
item.date=の別名です.... -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # content (27101.0) -
@todo
...@todo... -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase # content=() (27101.0) -
@todo
...@todo... -
Array
# repeated _ combination(n) -> Enumerator (24501.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],......]
a.repeated_combination(4).to_a #=> [[1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,2,2],[1,1,2,3],
# [1,1,3,3],[1,2,2,2],[1,2,2,3],[1,2,3,3],[1,3,3,3],
# [2,2,2,2],[2,2,2,3],[2,2,3,3],[2,3,3,3],[3,3,3,3]]
a.repeated_combination(0).to_a #=... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (24501.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......elf が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相......対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}...