3699件ヒット
[1-100件を表示]
(0.206秒)
ライブラリ
- ビルトイン (1196)
- benchmark (12)
- bigdecimal (36)
-
bigdecimal
/ util (12) - csv (48)
- date (12)
- digest (24)
- erb (12)
- fiddle (120)
-
fiddle
/ import (12) - ipaddr (36)
-
irb
/ context (48) - json (12)
- matrix (24)
- openssl (396)
- optparse (48)
- ostruct (38)
- pathname (577)
- rake (84)
- resolv (36)
- rexml (12)
-
rexml
/ document (288) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (12) -
rubygems
/ requirement (12) -
rubygems
/ version (24) - set (28)
-
shell
/ filter (12) - socket (48)
- stringio (24)
- uri (60)
-
webrick
/ httprequest (12) -
webrick
/ httpresponse (84) -
webrick
/ httputils (12) -
webrick
/ httpversion (12) -
webrick
/ log (72) - win32ole (144)
- zlib (24)
クラス
-
ARGF
. class (36) - Addrinfo (24)
- Array (86)
- BasicObject (12)
-
Benchmark
:: Tms (12) - BigDecimal (48)
- Bignum (6)
-
CGI
:: Cookie (12) -
CSV
:: Row (24) -
CSV
:: Table (24) - Complex (12)
- Data (6)
- Date (12)
-
Digest
:: Base (24) - ERB (12)
- Encoding (24)
-
Enumerator
:: Lazy (22) - Exception (24)
- FalseClass (24)
-
Fiddle
:: Pointer (120) - Fixnum (6)
- Float (35)
-
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (12) -
Gem
:: Requirement (12) -
Gem
:: Version (24) - Hash (100)
- IO (24)
- IPAddr (36)
-
IRB
:: Context (48) - Integer (24)
- MatchData (12)
- Matrix (12)
- Method (24)
- Module (36)
- NameError (12)
- NilClass (12)
- Object (39)
-
OpenSSL
:: BN (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: HMAC (36) -
OpenSSL
:: Netscape :: SPKI (24) -
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: PKey :: DH (36) -
OpenSSL
:: PKey :: DSA (72) -
OpenSSL
:: PKey :: RSA (72) -
OpenSSL
:: X509 :: CRL (24) -
OpenSSL
:: X509 :: Certificate (24) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (12) -
OpenSSL
:: X509 :: Request (24) - OpenStruct (38)
- OptionParser (24)
-
OptionParser
:: ParseError (24) - Pathname (577)
- Proc (24)
-
Process
:: Status (12) -
REXML
:: Attribute (24) -
REXML
:: CData (24) -
REXML
:: Comment (24) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Element (48) -
REXML
:: Elements (60) -
REXML
:: Entity (24) -
REXML
:: ExternalEntity (12) -
REXML
:: NotationDecl (12) -
REXML
:: ParseException (12) -
REXML
:: Text (24) -
Rake
:: EarlyTime (12) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: Task (12) -
Rake
:: TaskArguments (24) - Range (24)
- Rational (24)
- Regexp (24)
-
Resolv
:: DNS :: Name (12) -
Resolv
:: IPv4 (12) -
Resolv
:: IPv6 (12) - Set (16)
-
Shell
:: Filter (12) -
Socket
:: Option (24) - String (108)
- StringIO (24)
- Struct (24)
- Symbol (227)
- Thread (40)
-
Thread
:: Backtrace :: Location (24) - Time (18)
- TrueClass (12)
-
URI
:: Generic (60) - UnboundMethod (36)
- UncaughtThrowError (11)
- Vector (12)
-
WEBrick
:: BasicLog (72) -
WEBrick
:: Cookie (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (84) -
WEBrick
:: HTTPUtils :: FormData (12) -
WEBrick
:: HTTPVersion (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (24) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (36) -
WIN32OLE
_ TYPELIB (24) -
WIN32OLE
_ VARIABLE (24) -
Zlib
:: GzipWriter (24)
モジュール
- Enumerable (24)
-
Fiddle
:: Importer (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
OpenSSL
:: Buffering (12) -
REXML
:: Node (12)
キーワード
- % (12)
- +@ (12)
- -@ (12)
- << (48)
- =~ (12)
- [] (84)
- []= (24)
-
_ _ to _ s _ _ (12) - add (12)
-
add
_ element (12) -
add
_ namespace (12) -
add
_ trace _ func (12) - bind (12)
- binread (12)
- binwrite (12)
- birthtime (11)
- body= (12)
- chardev? (12)
- chmod (12)
- chown (12)
- chunked= (12)
-
content
_ length (12) -
content
_ length= (12) - data (12)
- debug (12)
- delete (12)
-
delete
_ all (12) -
delete
_ element (12) -
delete
_ namespace (12) - directory? (12)
- dirname (12)
-
each
_ entry (15) -
each
_ line (24) - entities (12)
- error (12)
-
executable
_ real? (12) - export (60)
- extname (12)
- fatal (12)
-
fetch
_ values (2) - find (23)
- fnmatch (12)
- fnmatch? (12)
- ftype (12)
- grep (12)
-
grep
_ v (10) - grpowned? (12)
- handler= (12)
- help (12)
- hex (12)
- hexdigest (24)
-
http
_ version (12) - id2name (12)
- info (12)
- inspect (271)
- inspect? (12)
- intern (12)
- join (12)
- lchmod (12)
- lchown (12)
- length (12)
- match (12)
- merge! (12)
-
method
_ missing (12) - mkdir (12)
- name (89)
- normalize (12)
- normalize! (12)
- oct (12)
- open (24)
- opendir (24)
- owner (12)
-
prev
_ float (11) - print (12)
- ptr (12)
- read (12)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- ref (12)
- remainder (12)
- rename (12)
- rmdir (12)
- rmtree (12)
-
set
_ trace _ func (12) - size (24)
- slice (60)
- split (12)
- src (12)
-
start
_ with? (6) - string (12)
- succ (12)
- sysopen (12)
- syswrite (12)
- then (7)
-
to
_ csv (24) -
to
_ digits (12) -
to
_ f (12) -
to
_ h (14) -
to
_ i (12) -
to
_ json (12) -
to
_ path (12) -
to
_ pem (120) -
to
_ proc (12) -
to
_ set (24) -
to
_ sockaddr (12) -
to
_ str (48) -
to
_ string (24) -
to
_ sym (24) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - truncate (12)
- uniq (24)
- uniq! (24)
- userinfo= (12)
- utime (12)
- value (24)
- version (12)
- warn (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (72)
-
yield
_ self (8) - zero? (12)
- | (6)
検索結果
先頭5件
-
Gem
:: Requirement # to _ s -> String (24308.0) -
条件を表す文字列を返します。
...条件を表す文字列を返します。
//emlist[][ruby]{
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
p req.to_s # => "< 5.0, >= 1.9"
//}... -
URI
:: Generic # to _ s -> String (24308.0) -
自身が表す URI を文字列として返します。
...自身が表す URI を文字列として返します。
例:
require 'uri'
p URI.parse('http://example.com/').to_s #=> "http://example.com/"... -
UncaughtThrowError
# to _ s -> String (24308.0) -
self を tag を含む文字列表現にして返します。
...self を tag を含む文字列表現にして返します。
//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.to_s # => "uncaught throw :uncaught_label"
end
//}... -
Regexp
# to _ s -> String (21338.0) -
正規表現の文字列表現を生成して返します。返される文字列は他の正規表 現に埋め込んでもその意味が保持されるようになっています。
...現に埋め込んでもその意味が保持されるようになっています。
//emlist[][ruby]{
re = /foo|bar|baz/i
p re.to_s # => "(?i-mx:foo|bar|baz)"
p /#{re}+/o # => /(?i-mx:foo|bar|baz)+/
//}
ただし、後方参照を含む正規表現は意図通りにはならない場合......//emlist[][ruby]{
re = /(foo|bar)\1/ # \1 は、foo か bar
p /(baz)#{re}/ # \1 は、baz
# => /(baz)(?-mix:(foo|bar)\1)/
//}
//emlist[使用例][ruby]{
re = /foo|bar|baz/i
p re.to_s # => "(?i-mx:foo|bar|baz)"
p /#{re}+/o # => /(?i-mx:foo|bar|baz)+/
//}
@see Regexp#inspec... -
Range
# to _ s -> String (21330.0) -
self を文字列に変換します(始端と終端のオブジェクトは #to_s メソッドで文 字列に変換されます)。
...self を文字列に変換します(始端と終端のオブジェクトは #to_s メソッドで文
字列に変換されます)。
@see Range#inspect
//emlist[例][ruby]{
(1..5).to_s # => "1..5"
("1".."5").to_s # => "1..5"
//}... -
Rational
# to _ s -> String (21326.0) -
自身を人間が読みやすい形の文字列表現にして返します。
..."3/5", "-17/7" のように10進数の表記を返します。
@return 有理数の表記にした文字列を返します。
//emlist[例][ruby]{
Rational(3, 4).to_s # => "3/4"
Rational(8).to_s # => "8/1"
Rational(-8, 6).to_s # => "-4/3"
Rational(0.5).to_s # => "1/2"
//}
@see Rational#i... -
String
# to _ s -> String (21326.0) -
self を返します。
...t[例][ruby]{
p "str".to_s # => "str"
p "str".to_str # => "str"
//}
このメソッドは、文字列を他のクラスのインスタンスと混ぜて処理したいときに有効です。
例えば返り値が文字列か nil であるメソッド some_method があるとき、
to_s メ......ソッドを使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_method(5).to_s.downcase
//}... -
WEBrick
:: HTTPResponse # to _ s -> String (21320.0) -
実際にクライアントに送られるデータを文字列として返します。
...列として返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 08:58:49 GMT
Server:
Content-Length: 4
hoge... -
Process
:: Status # to _ s -> String (21318.0) -
to_i.to_s と同じです。
...to_i.to_s と同じです。...