2670件ヒット
[101-200件を表示]
(0.269秒)
ライブラリ
- ビルトイン (1064)
- benchmark (12)
- bigdecimal (24)
-
bigdecimal
/ util (12) - csv (48)
- date (12)
- digest (24)
- erb (12)
- fiddle (72)
- ipaddr (24)
-
irb
/ context (36) - json (12)
- matrix (24)
- openssl (384)
- optparse (48)
- ostruct (24)
- pathname (108)
- rake (84)
- resolv (36)
- rexml (12)
-
rexml
/ document (180) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (12) -
rubygems
/ requirement (12) -
rubygems
/ version (24) - scanf (6)
- set (10)
-
shell
/ filter (6) - socket (48)
- stringio (24)
- uri (36)
-
webrick
/ httprequest (12) -
webrick
/ httpresponse (36) -
webrick
/ httputils (12) -
webrick
/ httpversion (12) - win32ole (132)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- Array (36)
-
Benchmark
:: Tms (12) - BigDecimal (36)
- Bignum (6)
-
CGI
:: Cookie (12) -
CSV
:: Row (24) -
CSV
:: Table (24) - Complex (12)
- Data (6)
- Date (12)
-
Digest
:: Base (24) - ERB (12)
- Encoding (24)
- Exception (24)
- FalseClass (24)
-
Fiddle
:: Pointer (72) - Fixnum (6)
- Float (24)
-
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (12) -
Gem
:: Requirement (12) -
Gem
:: Version (24) - Hash (24)
- IO (12)
- IPAddr (24)
-
IRB
:: Context (36) - Integer (24)
- MatchData (12)
- Matrix (12)
- Method (24)
- Module (36)
- NameError (12)
- NilClass (12)
- Object (78)
-
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 (24)
- OptionParser (24)
-
OptionParser
:: ParseError (24) - Pathname (108)
- Proc (24)
-
Process
:: Status (12) -
REXML
:: Attribute (24) -
REXML
:: CData (24) -
REXML
:: Comment (24) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
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) -
Scanf
:: FormatString (6) - Set (16)
-
Shell
:: Filter (6) -
Socket
:: Option (24) - String (108)
- StringIO (24)
- Struct (24)
- Symbol (293)
- Thread (16)
-
Thread
:: Backtrace :: Location (24) - Time (18)
- TrueClass (12)
-
URI
:: Generic (36) - UnboundMethod (24)
- UncaughtThrowError (11)
- Vector (12)
-
WEBrick
:: Cookie (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (36) -
WEBrick
:: HTTPUtils :: FormData (12) -
WEBrick
:: HTTPVersion (12) -
WIN32OLE
_ METHOD (24) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (36) -
WIN32OLE
_ TYPELIB (24) -
WIN32OLE
_ VARIABLE (24)
モジュール
キーワード
- % (12)
- << (12)
- =~ (12)
- [] (84)
-
_ _ to _ s _ _ (12) -
add
_ element (12) - binread (12)
- binwrite (12)
- capitalize (12)
-
content
_ length (12) -
content
_ length= (12) - data (12)
-
define
_ singleton _ method (24) - downcase (12)
-
end
_ with? (6) - entities (12)
- export (60)
- extname (12)
- ftype (12)
- help (12)
- hex (12)
- hexdigest (24)
- id2name (12)
- inspect (271)
- intern (12)
- join (12)
- length (12)
- match (12)
- name (89)
- next (12)
- normalize (12)
- normalize! (12)
- oct (12)
- read (12)
- readlines (12)
- size (12)
- slice (60)
- src (12)
-
start
_ with? (6) - succ (12)
- swapcase (12)
- syswrite (12)
- then (14)
-
to
_ csv (24) -
to
_ digits (12) -
to
_ f (12) -
to
_ i (12) -
to
_ json (12) -
to
_ path (12) -
to
_ pem (120) -
to
_ sockaddr (12) -
to
_ str (48) -
to
_ string (24) -
to
_ sym (24) - upcase (12)
- value (24)
- version (12)
- write (24)
-
yield
_ self (16)
検索結果
先頭5件
-
Rational
# to _ s -> String (18227.0) -
自身を人間が読みやすい形の文字列表現にして返します。
..."-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#inspect... -
Vector
# to _ s -> String (18225.0) -
ベクトル(Vector)から文字列 (String) に変換します。
...ベクトル(Vector)から文字列 (String) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_s
# => "Vector[2, 3, 5, 7, 9]"
//}... -
IPAddr
# to _ s -> String (18221.0) -
文字列に変換します。
...文字列に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_string... -
Process
:: Status # to _ s -> String (18219.0) -
to_i.to_s と同じです。
...to_i.to_s と同じです。... -
Object
# to _ s -> String (18215.0) -
オブジェクトの文字列表現を返します。
...使って文字列に変換し
ます。
//emlist[][ruby]{
class Foo
def initialize num
@num = num
end
end
it = Foo.new(40)
puts it #=> #<Foo:0x2b69110>
class Foo
def to_s
"Class:Foo Number:#{@num}"
end
end
puts it #=> Class:Foo Number:40
//}
@see Object#to_str,Kernel.#String... -
Regexp
# to _ s -> String (18215.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#inspect... -
Time
# to _ s -> String (18215.0) -
時刻を文字列に変換した結果を返します。 以下のようにフォーマット文字列を使って strftime を呼び出すのと同じです。
...同じです。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t.to_s # => "2000-01-02 03:04:05 +0900"
p t.strftime("%Y-%m-%d %H:%M:%S %z") # => "2000-01-02 03:04:05 +0900"
p t.utc.to_s # => "2000-01-01 18:04:05 UTC"
p t.strftime("%Y-... -
Gem
:: Version # to _ s -> String (18210.0) -
バージョン情報を文字列として返します。
...バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//}... -
REXML
:: CData # to _ s -> String (18210.0) -
テキスト文字列を返します。
...テキスト文字列を返します。
@see REXML::Text#value, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root><![CDATA[foobar baz]]></root>
EOS
doc.root[0].class # => REXML::CData
doc.root[0].value # => "foobar baz"
//}... -
Gem
:: Requirement # to _ s -> String (18209.0) -
条件を表す文字列を返します。
...条件を表す文字列を返します。
//emlist[][ruby]{
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
p req.to_s # => "< 5.0, >= 1.9"
//}...