種類
ライブラリ
- English (11)
- ビルトイン (1379)
- benchmark (22)
- bigdecimal (55)
-
bigdecimal
/ util (11) - csv (44)
- date (33)
- digest (33)
- erb (11)
- fiddle (154)
-
fiddle
/ import (11) - ipaddr (33)
-
irb
/ context (55) -
irb
/ inspector (11) - json (11)
- matrix (22)
- monitor (11)
- observer (11)
- openssl (440)
- optparse (44)
- ostruct (34)
- pathname (768)
-
racc
/ parser (11) - rake (110)
- readline (11)
- resolv (33)
- rexml (11)
-
rexml
/ document (363) -
rubygems
/ package / tar _ header (11) -
rubygems
/ platform (11) -
rubygems
/ requirement (11) -
rubygems
/ version (22) - scanf (12)
- set (36)
-
shell
/ command-processor (6) -
shell
/ filter (12) - socket (44)
- stringio (22)
- uri (110)
-
webrick
/ httprequest (11) -
webrick
/ httpresponse (77) -
webrick
/ httputils (11) -
webrick
/ httpversion (11) -
webrick
/ log (66) -
win32
/ registry (22) - win32ole (132)
- zlib (22)
クラス
-
ARGF
. class (33) - Addrinfo (22)
- Array (77)
- BasicObject (11)
-
Benchmark
:: Tms (11) - BigDecimal (66)
- Bignum (6)
-
CGI
:: Cookie (11) -
CSV
:: Row (22) -
CSV
:: Table (22) - Complex (11)
- Data (4)
- Date (11)
- DateTime (22)
-
Digest
:: Base (22) - ERB (11)
- Encoding (22)
-
Enumerator
:: Lazy (20) - Exception (22)
- FalseClass (22)
-
Fiddle
:: Pointer (132) - File (11)
- Fixnum (6)
- Float (42)
-
Gem
:: Package :: TarHeader (11) -
Gem
:: Platform (11) -
Gem
:: Requirement (11) -
Gem
:: Version (22) - Hash (88)
- IO (33)
- IPAddr (33)
-
IRB
:: Context (55) -
IRB
:: Inspector (11) - Integer (22)
- MatchData (11)
- Matrix (11)
- Method (22)
- Module (33)
- NameError (11)
- NilClass (11)
- Object (70)
-
OpenSSL
:: BN (44) -
OpenSSL
:: Config (11) -
OpenSSL
:: HMAC (33) -
OpenSSL
:: Netscape :: SPKI (22) -
OpenSSL
:: PKCS7 (22) -
OpenSSL
:: PKey :: DH (33) -
OpenSSL
:: PKey :: DSA (66) -
OpenSSL
:: PKey :: RSA (66) -
OpenSSL
:: X509 :: CRL (22) -
OpenSSL
:: X509 :: Certificate (22) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: Name (55) -
OpenSSL
:: X509 :: Request (22) - OpenStruct (34)
- OptionParser (22)
-
OptionParser
:: ParseError (22) - Pathname (768)
- Proc (22)
-
Process
:: Status (11) -
REXML
:: Attribute (22) -
REXML
:: CData (33) -
REXML
:: Child (22) -
REXML
:: Comment (22) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Element (66) -
REXML
:: Elements (55) -
REXML
:: Entity (22) -
REXML
:: ExternalEntity (11) -
REXML
:: NotationDecl (11) -
REXML
:: ParseException (11) -
REXML
:: Text (44) -
Racc
:: Parser (11) -
Rake
:: EarlyTime (11) -
Rake
:: FileList (11) -
Rake
:: InvocationChain (33) -
Rake
:: InvocationChain :: EmptyInvocationChain (11) -
Rake
:: Task (11) -
Rake
:: TaskArguments (22) - Range (33)
- Rational (22)
- Regexp (22)
-
Resolv
:: DNS :: Name (11) -
Resolv
:: IPv4 (11) -
Resolv
:: IPv6 (11) -
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (6) - Set (14)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (12) -
Socket
:: Option (22) - String (99)
- StringIO (22)
- Struct (22)
- Symbol (289)
- Thread (36)
-
Thread
:: Backtrace :: Location (22) - Time (16)
- TrueClass (11)
-
URI
:: FTP (22) -
URI
:: Generic (66) -
URI
:: LDAP (22) - UnboundMethod (33)
- UncaughtThrowError (10)
- Vector (11)
-
WEBrick
:: BasicLog (66) -
WEBrick
:: Cookie (11) -
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (77) -
WEBrick
:: HTTPUtils :: FormData (11) -
WEBrick
:: HTTPVersion (11) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (22) -
WIN32OLE
_ PARAM (22) -
WIN32OLE
_ TYPE (33) -
WIN32OLE
_ TYPELIB (22) -
WIN32OLE
_ VARIABLE (22) -
Win32
:: Registry (22) -
Zlib
:: GzipWriter (22)
モジュール
- Benchmark (11)
- Enumerable (22)
-
Fiddle
:: Importer (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) - Kernel (88)
-
OpenSSL
:: Buffering (11) -
REXML
:: Node (11)
オブジェクト
- ENV (11)
-
Readline
:: HISTORY (11) - main (22)
キーワード
-
$ ERROR _ INFO (11) - % (22)
- +@ (11)
- -@ (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (55)
- =~ (11)
- Base (11)
- BlockCaller (11)
- COMPAT (11)
- Closure (11)
- ExternalEntity (11)
- InvocationChain (11)
- Location (11)
- MULTILINE (11)
- MonitorMixin (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NotationDecl (11)
- Numeric (11)
- ONELINE (11)
- Observable (11)
- RFC2253 (11)
- String (11)
- Symbol (11)
- [] (77)
- []= (44)
-
_ _ to _ s _ _ (11) - add (11)
-
add
_ delegate _ command _ to _ shell (6) -
add
_ element (11) -
add
_ namespace (22) -
add
_ trace _ func (11) -
all
_ symbols (11) - append (11)
- atime (11)
-
avalue
_ to _ svalue (11) - basename (11)
- bigdecimal (11)
-
bigdecimal
/ math (11) - bind (11)
- binread (11)
- binwrite (11)
- birthtime (10)
- blockdev? (11)
- body= (11)
- build (44)
- capitalize (11)
- chardev? (11)
- chmod (11)
- chown (11)
- chunked= (11)
-
content
_ length (11) -
content
_ length= (11) - ctime (11)
- data (11)
- debug (11)
-
def
_ inspector (11) -
define
_ singleton _ method (22) - delete (11)
-
delete
_ all (11) -
delete
_ element (11) -
delete
_ namespace (11) - directory? (11)
- dirname (11)
- downcase (11)
-
each
_ entry (13) -
each
_ line (22) - empty? (8)
-
end
_ with? (5) - entities (11)
- error (11)
- executable? (11)
-
executable
_ real? (11) - exist? (11)
- export (55)
- extname (11)
- fatal (11)
- file? (11)
- find (22)
- fnmatch (11)
- fnmatch? (11)
- format (11)
- ftype (11)
- grep (11)
-
grep
_ v (9) - grpowned? (11)
- handler= (11)
- help (11)
- hex (11)
- hexdigest (22)
- hostname= (11)
-
http
_ version (11) - id2name (11)
- info (11)
- inspect (258)
- inspect? (11)
-
inspect
_ mode= (11) - intern (11)
- irb (11)
-
irb
/ completion (11) -
irb
/ ext / math-mode (4) - join (11)
- lchmod (22)
- lchown (11)
- length (11)
- lstat (11)
-
make
_ link (11) -
make
_ symlink (11) - match (11)
- measure (11)
- merge! (11)
-
method
_ missing (11) - mkdir (11)
- mkpath (11)
- modulo (11)
- mtime (11)
-
mvalue
_ to _ svalue (11) - name (92)
- new (77)
- next (11)
-
next
_ float (10) -
next
_ sibling= (11) - normalize (11)
- normalize! (11)
- oct (11)
- open (22)
- opendir (22)
-
optparse
/ date (11) - owned? (11)
- owner (11)
- parse (11)
- pipe? (11)
-
prev
_ float (10) -
previous
_ sibling= (11) - print (22)
-
proc
_ to _ s (11) - profile (6)
- ptr (11)
- puts (11)
-
rb
_ any _ to _ s (11) -
rb
_ ary _ pop (11) -
rb
_ ary _ to _ s (11) -
rb
_ class _ path (11) -
rb
_ mod _ to _ s (11) - read (11)
- readable? (11)
-
readable
_ real? (11) - readlines (11)
- readlink (11)
- ref (11)
- remainder (11)
- rename (11)
- resolv (11)
- rmdir (11)
- rmtree (11)
- rss (11)
-
ruby 1
. 6 feature (11) -
set
_ trace _ func (22) - setgid? (11)
- setuid? (11)
- size (22)
- size? (11)
- slice (55)
- socket? (11)
- split (11)
- sprintf (11)
- sprintf フォーマット (11)
- src (11)
-
start
_ with? (5) - stat (11)
- sticky? (11)
- string (11)
- strptime (11)
- succ (22)
- swapcase (11)
- symlink? (11)
- sysopen (11)
- syswrite (11)
- text= (11)
- then (12)
-
to
_ csv (22) -
to
_ digits (11) -
to
_ f (11) -
to
_ h (12) -
to
_ i (11) -
to
_ json (11) -
to
_ path (11) -
to
_ pem (110) -
to
_ proc (11) -
to
_ set (22) -
to
_ sockaddr (11) -
to
_ str (44) -
to
_ string (22) -
to
_ sym (22) -
token
_ to _ str (11) - tracer (11)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - truncate (11)
- uniq (22)
- uniq! (22)
- upcase (11)
- userinfo= (11)
- utime (11)
- value (22)
- value= (11)
- version (11)
- warn (22)
-
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (66)
-
yield
_ self (14) - zero? (11)
- | (6)
- メソッド呼び出し(super・ブロック付き・yield) (9)
検索結果
先頭5件
-
NilClass
# to _ s -> String (18107.0) -
空文字列 "" を返します。
...空文字列 "" を返します。
//emlist[例][ruby]{
nil.to_s # => ""
//}... -
Object
# to _ s -> String (18107.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... -
REXML
:: CData # to _ s -> String (18107.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"
//}... -
REXML
:: Entity # to _ s -> String (18107.0) -
実体宣言を文字列化したものを返します。
...実体宣言を文字列化したものを返します。
@see REXML::Entity#write
//emlist[][ruby]{
e = REXML::ENTITY.new("w", "wee");
p e.to_s # => "<!ENTITY w \"wee\">"
//}... -
REXML
:: Text # to _ s -> String (18107.0) -
テキストの内容を正規化(すべての実体をエスケープ)された状態で返します。
...トとして妥当です。
結果は REXML::Text.new で指定した entity_filter を反映しています。
@see REXML::Text#value
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//}... -
Rake
:: FileList # to _ s -> String (18107.0) -
全ての要素をスペースで連結した文字列を返します。
...全ての要素をスペースで連結した文字列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_s # => "a.c b.c"
end
//}... -
Rake
:: InvocationChain # to _ s -> String (18107.0) -
トップレベルのタスクから自身までの依存関係を文字列として返します。
...の依存関係を文字列として返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.to_s # => "TOP => task_a"
end
//}... -
Readline
:: HISTORY . to _ s -> "HISTORY" (18107.0) -
文字列"HISTORY"を返します。
...文字列"HISTORY"を返します。
例:
require 'readline'
Readline::HISTORY.to_s #=> "HISTORY"... -
Shell
:: Filter # to _ s -> String (18107.0) -
実行結果を文字列で返します。
...実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}... -
Thread
:: Backtrace :: Location # to _ s -> String (18107.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
...mlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
# => path/to/foo.rb:5:in `initialize'
# path/to/foo.rb:9:in `new'
# path/to/foo.rb:9:in `<main>'
//}...