3452件ヒット
[1-100件を表示]
(0.048秒)
別のキーワード
ライブラリ
- ビルトイン (658)
- benchmark (12)
- bigdecimal (24)
-
cgi
/ html (300) - date (64)
- dbm (12)
- delegate (24)
- digest (12)
-
fiddle
/ import (36) - gdbm (12)
- json (156)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / rational (12) - logger (38)
- matrix (519)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (96)
-
net
/ ftp (42) -
net
/ http (12) -
net
/ imap (60) - observer (12)
- openssl (144)
- optparse (12)
- pathname (70)
- rake (12)
-
rdoc
/ context (12) -
rdoc
/ markup (12) -
rdoc
/ parser / simple (12) -
rexml
/ document (240) -
rexml
/ sax2listener (24) -
rexml
/ streamlistener (48) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ format (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ installer (12) -
rubygems
/ old _ format (12) -
rubygems
/ package / tar _ writer (24) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (24) -
rubygems
/ spec _ fetcher (24) -
rubygems
/ specification (12) -
rubygems
/ user _ interaction (96) - scanf (12)
- sdbm (12)
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (18) -
shell
/ process-controller (6) - socket (36)
- stringio (55)
- strscan (24)
- tsort (11)
- uri (12)
-
webrick
/ httpauth / digestauth (12) -
webrick
/ httpresponse (12) -
webrick
/ httputils (36) -
yaml
/ dbm (12) - zlib (96)
クラス
- Array (21)
- BasicSocket (24)
-
Benchmark
:: Tms (12) - BigDecimal (24)
- DBM (12)
- Data (3)
- Date (26)
- DateTime (62)
- Delegator (24)
-
Digest
:: Base (12) - Float (9)
- GDBM (12)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Format (12) -
Gem
:: GemPathSearcher (12) -
Gem
:: Installer (12) -
Gem
:: OldFormat (12) -
Gem
:: Package :: TarWriter :: BoundedStream (12) -
Gem
:: Package :: TarWriter :: RestrictedStream (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (24) -
Gem
:: SpecFetcher (24) -
Gem
:: Specification (12) -
Gem
:: StreamUI (60) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) - Hash (8)
- Integer (12)
-
JSON
:: State (48) - Logger (24)
-
Logger
:: Application (2) -
Logger
:: Formatter (12) - MatchData (62)
- Matrix (471)
-
Matrix
:: LUPDecomposition (12) - Module (120)
-
Net
:: FTP (42) -
Net
:: HTTP (12) -
Net
:: IMAP (60) - Object (13)
-
OpenSSL
:: Cipher (12) -
OpenSSL
:: PKey :: DSA (12) -
OpenSSL
:: PKey :: EC (12) -
OpenSSL
:: PKey :: PKey (12) -
OpenSSL
:: PKey :: RSA (24) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: X509 :: Attribute (24) -
OpenSSL
:: X509 :: ExtensionFactory (12) -
OpenSSL
:: X509 :: Request (24) - OptionParser (12)
- Pathname (70)
-
RDoc
:: Context (12) -
RDoc
:: Markup (12) -
RDoc
:: Parser :: Simple (12) -
REXML
:: Attribute (48) -
REXML
:: Attributes (84) -
REXML
:: DocType (12) -
REXML
:: Element (96) - Rational (24)
- Regexp (24)
-
Rinda
:: TupleSpace (12) -
Rinda
:: TupleSpaceProxy (12) - SDBM (12)
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6) - String (339)
- StringIO (55)
- StringScanner (24)
- Struct (12)
- Thread (24)
- Time (12)
- UDPSocket (12)
-
URI
:: LDAP (12) - Vector (36)
-
WEBrick
:: Cookie (12) -
WEBrick
:: HTTPAuth :: DigestAuth (12) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPUtils :: FormData (36) -
YAML
:: DBM (12) -
Zlib
:: Deflate (60) -
Zlib
:: Inflate (36)
モジュール
-
CGI
:: HtmlExtension (300) -
Fiddle
:: Importer (36) - GC (12)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (96)
-
MiniTest
:: Assertions (2) - Observable (12)
-
REXML
:: SAX2Listener (24) -
REXML
:: StreamListener (48) - TSort (11)
キーワード
- * (36)
- ** (12)
- + (24)
- - (24)
-
/ (24) - << (24)
- == (12)
- [] (84)
- []= (7)
- accept (12)
- add (12)
-
add
_ attribute (48) -
add
_ attributes (12) -
add
_ element (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
assert
_ match (1) -
assert
_ operator (1) - attlistdecl (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) - attributes= (24)
- authenticate (12)
-
backtrace
_ locations (24) - byteindex (3)
- byterindex (3)
- call (12)
- cdata (12)
- changed (12)
- checkbox (12)
-
checkbox
_ group (12) - children (12)
- coerce (12)
- cofactor (12)
-
cofactor
_ expansion (12) - collect (14)
- collect! (14)
- column (24)
- component (12)
- concat (33)
-
const
_ source _ location (12) - convert (12)
-
create
_ ext _ from _ string (12) -
create
_ header (12) -
create
_ makefile (12) -
create
_ tmpsrc (12) -
create
_ value (12) -
deconstruct
_ keys (9) - deflate (12)
- delete (12)
-
delete
_ all (12) -
delete
_ attribute (12) -
dsa
_ sign _ asn1 (12) - each (36)
-
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ line (24) -
each
_ strongly _ connected _ component _ from (11) -
each
_ with _ index (24) - element (12)
- element= (12)
- eql? (12)
-
extra
_ chain _ cert= (12) -
extra
_ rdoc _ files= (12) - fatal (24)
- fetch (24)
-
fetch
_ path (12) -
file
_ entries= (24) -
file
_ field (12) - filename (12)
- find (22)
-
find
_ executable (12) -
find
_ index (36) -
find
_ matching (12) -
first
_ minor (12) - flush (12)
- form (48)
- format (12)
-
formatted
_ program _ filename (12) -
garbage
_ collect (12) -
gem
_ signature (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ file _ uri _ path (12) -
get
_ path (12) - gsub (48)
- gsub! (48)
- hidden (12)
- hstack (12)
- html (24)
- img (12)
- indent= (12)
- index (48)
- inflate (12)
- iso8601 (12)
- jisx0301 (12)
-
laplace
_ expansion (12) - libpathflag (12)
- lines (7)
-
link
_ command (12) - log (2)
- map (14)
- map! (14)
- match (24)
- match? (12)
-
matching
_ files (12) - minor (24)
- mlsd (20)
- mlst (10)
-
multipart
_ form (48) -
must
_ match (1) - name (12)
- namespace (12)
- normalized= (12)
- notationdecl (12)
- notify (24)
-
object
_ nl= (12) - oid= (12)
-
open
_ uri _ or _ path (12) - pack (21)
- params (12)
-
password
_ field (12) - path (12)
-
pathmap
_ replace (12) - printf (12)
- private (12)
-
private
_ decrypt (12) -
private
_ encrypt (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) -
processing
_ instruction (12) -
protected
_ methods (12) -
public
_ methods (12) -
radio
_ group (12) - readlink (18)
-
recvfrom
_ nonblock (12) - recvmsg (12)
-
recvmsg
_ nonblock (12) -
remove
_ private _ comments (12) - reset (12)
- retrbinary (12)
- rfc3339 (12)
- rindex (12)
- row (24)
- say (12)
- scan (24)
- scanf (12)
-
scrolling
_ list (12) - select (12)
-
set
_ cache _ data (12) -
set
_ dictionary (24) -
set
_ error (12) - sign (12)
- solve (12)
- space= (12)
-
space
_ before= (12) -
spec
_ path (12) - split (18)
-
start
_ element (12) - status (12)
- store (12)
- strftime (24)
- struct (12)
- sub (36)
- sub! (36)
- submit (12)
- sync (12)
- syssign (12)
-
tag
_ start (12) -
terminate
_ interaction (12) -
terminate
_ job (6) - text (12)
-
text
_ field (12) - textarea (12)
-
to
_ json (144) - tr! (12)
-
tr
_ s (12) -
tr
_ s! (12) - trace (12)
-
transform
_ keys (4) -
transform
_ keys! (4) - truncate (99)
-
try
_ file (12) -
try
_ static _ assert (24) -
uid
_ fetch (12) -
uid
_ store (12) - unpack (12)
- update (24)
- updated (36)
- value (12)
- value= (12)
-
values
_ at (60) - write (36)
- xmlschema (12)
検索結果
先頭5件
-
String
# tr(pattern , replace) -> String (21362.0) -
pattern 文字列に含まれる文字を検索し、 それを replace 文字列の対応する文字に置き換えます。
...pattern 文字列に含まれる文字を検索し、
それを replace 文字列の対応する文字に置き換えます。
pattern の形式は tr(1) と同じです。つまり、
`a-c' は a から c を意味し、"^0-9" のように
文字列の先頭が `^' の場合は指定文字以外......囲が pattern の範囲よりも小さい場合は、
replace の最後の文字が無限に続くものとして扱われます。
@param pattern 置き換える文字のパターン
@param replace pattern で指定した文字を置き換える文字
//emlist[例][ruby]{
p "foo".tr("f", "......oo"
p "foo".tr('a-z', 'A-Z') # => "FOO"
p "FOO".tr('A-Z', 'a-z') # => "foo"
# シーザー暗号の復号
p "ORYV".tr("A-Z", "D-ZA-C") # => "RUBY"
# 全角英数字といくつかの記号の半角化
email = "ruby−lang@example.com"
p email.tr("0-9... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (18413.0) -
namespace と name で特定される属性を返します。
...きます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//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='<'/>
</r......oot/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
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (18407.0) -
name という名前の属性を取得します。
...il を返します。
@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
# truncate(length) -> 0 (15207.0) -
File.truncate(self.to_s, length) と同じです。
...File.truncate(self.to_s, length) と同じです。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
StringIO
# truncate(len) -> Integer (15207.0) -
自身のサイズが len になるように、自身を切り詰め、もしくは拡大します。 拡大した場合は、その部分を 0 で埋めます。 len を返します。
...@param len 変更したいサイズを整数で指定します。
@raise IOError 自身が書き込み可能でない時に発生します。
@raise Errno::EINVAL len がマイナスの時に発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge", 'r+')
a.truncate(2)......a.string #=> "ho"
a.truncate(5)
a.string #=> "ho\000\000\000"
//}... -
OpenSSL
:: X509 :: Request # add _ attribute(attr) -> OpenSSL :: X509 :: Attribute (12607.0) -
新たな attribute を CSR に追加します。
...新たな attribute を CSR に追加します。
@param attr 追加する attribute(OpenSSL::X509::Attribute の
インスタンス)
@return 渡した attribute オブジェクトを返します
@see OpenSSL::X509::Request#attribute,
OpenSSL::X509::Request#attribute=... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (12513.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...スト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣言されていな......ます。
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED......title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}... -
REXML
:: Element # add _ attribute(attr) -> () (12419.0) -
要素の属性を追加します。 同じ名前の属性がすでにある場合はその属性を新しい 属性で置き換えます。
...す方法と REXML::Attribute オブジェクトを
渡す方法です。
文字列2つで指定する場合、属性値は unnormalized な文字列を渡す必要があります。
@param key 属性名(文字列)
@param value 属性値(文字列)
@param attr 属性(REXML::Attribute オブジェ......list[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<e/>")
doc.root.add_attribute("a", "b"); doc.root # => <e a='b'/>
doc.root.add_attribute("x:a", "c"); doc.root # => <e a='b' x:a='c'/>
doc.root.add_attribute(REXML::Attribute.new("b", "d"))
doc.root # => <e a='b' x:a='c' b='d'/>
//}... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (12419.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...レースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレ......@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtra......ce_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location...