種類
ライブラリ
- ビルトイン (4454)
- bigdecimal (33)
-
cgi
/ session (11) - coverage (7)
- csv (88)
- date (11)
- debug (11)
- delegate (66)
- digest (22)
- drb (55)
-
drb
/ extserv (11) -
drb
/ timeridconv (11) - e2mmap (6)
- etc (22)
- fiber (8)
- fiddle (44)
-
fiddle
/ import (11) - fileutils (24)
- gdbm (22)
-
io
/ console (33) -
io
/ nonblock (11) - ipaddr (22)
- irb (11)
-
irb
/ cmd / subirb (11) -
irb
/ context (77) -
irb
/ ext / save-history (11) -
irb
/ extend-command (66) -
irb
/ frame (11) -
irb
/ inspector (11) -
irb
/ magic-file (22) -
irb
/ output-method (33) -
irb
/ xmp (22) - json (264)
- matrix (55)
-
minitest
/ spec (7) -
minitest
/ unit (9) - mkmf (66)
- monitor (43)
-
mutex
_ m (22) -
net
/ ftp (22) -
net
/ http (44) -
net
/ imap (44) -
net
/ pop (121) -
net
/ smtp (78) - objspace (121)
- observer (11)
- open-uri (30)
- openssl (231)
- optparse (176)
- ostruct (53)
- pathname (22)
- pp (99)
- prettyprint (33)
- prime (110)
- profiler (12)
- pstore (22)
- psych (171)
- pty (22)
-
rdoc
/ code _ object (77) -
rdoc
/ known _ classes (11) -
rexml
/ document (110) -
rinda
/ rinda (33) -
rinda
/ tuplespace (11) -
ripper
/ filter (33) -
ripper
/ sexp (22) - rubygems (11)
-
rubygems
/ config _ file (22) -
rubygems
/ spec _ fetcher (22) -
rubygems
/ specification (22) -
rubygems
/ timer (11) -
rubygems
/ user _ interaction (11) - sdbm (11)
- shell (12)
-
shell
/ filter (18) -
shell
/ process-controller (6) - singleton (22)
- socket (275)
- stringio (44)
- strscan (44)
- sync (12)
- tempfile (55)
-
test
/ unit (1) - thread (8)
- timeout (41)
- tmpdir (22)
- tracer (11)
- uri (33)
-
webrick
/ cgi (11) -
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (11) -
webrick
/ server (11) - win32ole (924)
-
yaml
/ dbm (88) - zlib (99)
クラス
-
ARGF
. class (121) - Addrinfo (110)
- Array (558)
- BasicObject (154)
- BigDecimal (33)
- Binding (40)
-
CGI
:: Session (11) - CSV (44)
-
CSV
:: Row (33) -
CSV
:: Table (11) - Class (11)
- Coverage (7)
-
DRb
:: DRbIdConv (11) -
DRb
:: DRbObject (33) -
DRb
:: ExtServ (11) -
DRb
:: TimerIdConv (11) - Data (2)
- Date (11)
- Delegator (22)
-
Digest
:: Base (11) - Dir (132)
- Enumerator (55)
-
Enumerator
:: Chain (18) -
Enumerator
:: Yielder (22) - Fiber (48)
-
Fiddle
:: Closure :: BlockCaller (11) -
Fiddle
:: Pointer (11) - File (33)
- FrozenError (5)
- GDBM (22)
-
Gem
:: ConfigFile (22) -
Gem
:: SpecFetcher (22) -
Gem
:: Specification (22) - Hash (100)
- IO (374)
- IPAddr (22)
-
IRB
:: Context (66) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: Frame (11) -
IRB
:: Inspector (11) -
IRB
:: OutputMethod (33) - Integer (25)
-
JSON
:: Parser (11) -
JSON
:: State (44) - KeyError (7)
- LocalJumpError (11)
- MatchData (11)
- Matrix (22)
- Method (33)
- Module (277)
- Monitor (10)
- Mutex (2)
- NameError (20)
-
Net
:: FTP (22) -
Net
:: HTTP (22) -
Net
:: HTTPGenericRequest (22) -
Net
:: IMAP (11) -
Net
:: IMAP :: FetchData (11) -
Net
:: IMAP :: ResponseCode (11) -
Net
:: IMAP :: UntaggedResponse (11) -
Net
:: POP3 (22) -
Net
:: POPMail (99) -
Net
:: SMTP (78) - Numeric (11)
- Object (756)
-
ObjectSpace
:: WeakMap (11) -
OpenSSL
:: ASN1 :: ObjectId (88) -
OpenSSL
:: X509 :: Attribute (44) -
OpenSSL
:: X509 :: Name (33) - OpenStruct (53)
- OptionParser (132)
-
OptionParser
:: ParseError (11) - PP (44)
- PStore (11)
-
PStore
:: DummyMutex (11) - Pathname (22)
- PrettyPrint (33)
- Prime (44)
-
Prime
:: PseudoPrimeGenerator (44) - Proc (2)
-
Psych
:: ScalarScanner (11) -
Psych
:: Visitors :: YAMLTree (22) -
RDoc
:: CodeObject (77) -
RDoc
:: Options (11) -
REXML
:: Attribute (11) -
REXML
:: Element (11) -
REXML
:: Elements (22) -
REXML
:: Parent (66) - Random (22)
- Range (129)
- Rational (11)
- Regexp (33)
-
Rinda
:: DRbObjectTemplate (22) -
Rinda
:: TupleEntry (11) - Ripper (22)
-
Ripper
:: Filter (33) -
RubyVM
:: InstructionSequence (11) - SDBM (11)
- Shell (12)
-
Shell
:: Filter (18) -
Shell
:: ProcessController (6) - SimpleDelegator (33)
- Socket (66)
- StopIteration (11)
- String (85)
- StringIO (44)
- StringScanner (44)
- Struct (43)
- Symbol (3)
- Tempfile (55)
- Thread (62)
-
Thread
:: Mutex (9) -
Thread
:: Queue (11) -
Thread
:: SizedQueue (33) - Time (11)
- TracePoint (82)
- Tracer (22)
- UNIXServer (44)
- UNIXSocket (55)
- UnboundMethod (10)
- Vector (33)
-
WEBrick
:: CGI (11) -
WEBrick
:: GenericServer (11) -
WEBrick
:: HTTPAuth :: BasicAuth (11) - WIN32OLE (110)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (198) -
WIN32OLE
_ PARAM (77) -
WIN32OLE
_ TYPE (242) -
WIN32OLE
_ TYPELIB (132) -
WIN32OLE
_ VARIABLE (77) -
WIN32OLE
_ VARIANT (33) - XMP (11)
-
YAML
:: DBM (88) -
Zlib
:: GzipReader (44) -
Zlib
:: GzipWriter (55)
モジュール
- Comparable (8)
- DRb (11)
- Enumerable (616)
- Etc (22)
- Exception2MessageMapper (6)
- Fiddle (22)
- FileUtils (24)
- GC (24)
-
GC
:: Profiler (22) - Gem (11)
- IRB (11)
-
IRB
:: ContextExtender (22) -
IRB
:: ExtendCommandBundle (44) -
IRB
:: HistorySavingAbility (11) - JSON (143)
-
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (22) - Kernel (506)
- Marshal (66)
-
MiniTest
:: Assertions (9) - MonitorMixin (22)
-
Mutex
_ m (22) - ObjectSpace (198)
- Observable (11)
-
OpenSSL
:: ASN1 (44) -
OpenSSL
:: X509 (11) -
OptionParser
:: Arguable (22) - PTY (22)
-
Process
:: GID (22) -
Process
:: UID (22) -
Profiler
_ _ (6) - Psych (94)
- RDoc (11)
- Singleton (11)
-
Sync
_ m (12) -
Test
:: Unit (1) - Timeout (19)
- URI (36)
-
WEBrick
:: HTTPAuth :: Authenticator (11)
オブジェクト
-
IRB
:: MagicFile (22) - main (33)
キーワード
- ! (11)
- != (11)
-
$ * (11) -
$ -i (11) -
$ . (11) -
$ < (11) -
$ > (11) -
$ FILENAME (11) -
$ _ (11) -
$ stdin (11) -
$ stdout (11) - % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (11)
- << (33)
- <= (11)
- <=> (33)
- == (22)
- === (44)
- =~ (9)
- > (11)
- >= (11)
- ARGF (11)
- ARGV (11)
- Arguable (11)
-
BUILD
_ RUBY _ PLATFORM (11) - BasicObject (11)
- Binding (11)
- ConsoleUI (11)
- Context (11)
- DATA (11)
-
DEFAULT
_ OBJECT _ TYPE (11) - DRbObjectTemplate (11)
- Digest (11)
- Float (6)
- Id (11)
- Importer (11)
- Integer (11)
- JSON (11)
-
KNOWN
_ CLASSES (11) -
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) - Marshal フォーマット (11)
- MonitorMixin (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NIL (8)
-
OBJECT
_ DESCRIPTOR (11) -
OBJECT
_ TYPE _ TEMPLATE (11) - ObjectId (33)
- Options (11)
-
Profiler
_ _ (6) -
RUBY
_ COPYRIGHT (11) -
RUBY
_ DESCRIPTION (11) -
RUBY
_ ENGINE (11) -
RUBY
_ ENGINE _ VERSION (9) -
RUBY
_ PATCHLEVEL (11) -
RUBY
_ PLATFORM (11) -
RUBY
_ RELEASE _ DATE (11) -
RUBY
_ REVISION (11) -
RUBY
_ VERSION (11) - Rational (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
-
SCRIPT
_ LINES _ _ (11) -
SC
_ SHARED _ MEMORY _ OBJECTS (11) -
SC
_ TYPED _ MEMORY _ OBJECTS (11) - STDERR (11)
- STDIN (11)
- STDOUT (11)
- SimpleDelegator (11)
- Singleton (11)
- String (11)
-
TOPLEVEL
_ BINDING (11) -
TRUST
_ OBJECT _ SIGN (11) - URI (11)
- Version (11)
-
WIN32OLE
_ PARAM (11) -
WIN32OLE
_ TYPE (11) -
WIN32OLE
_ TYPELIB (11) -
WIN32OLE
_ VARIABLE (11) - [] (176)
- []= (11)
-
_ _ drbref (11) -
_ _ drburi (11) -
_ _ getobj _ _ (11) -
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ _ setobj _ _ (11) -
_ dump (11) -
_ getproperty (11) -
_ id2ref (11) -
_ invoke (11) -
add
_ entry (11) - all (33)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
arg
_ config (11) -
array
_ attributes (11) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ nil (1) -
assert
_ respond _ to (1) -
assert
_ same (1) - at (11)
- attr (11)
- begin (11)
- bind (22)
-
bind
_ call (10) - binding (11)
-
body
_ stream (11) -
body
_ stream= (11) -
boot
_ defclass (11) - bsearch (44)
- call (11)
- catch (22)
- cd (12)
- chdir (56)
- clamp (8)
-
class
_ eval (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
class
_ variables (11) -
cofactor
_ expansion (11) - collect (33)
- comment (11)
-
compare
_ by _ identity (11) - component (11)
- config (11)
- connect (33)
-
connect
_ from (22) -
connect
_ to (22) -
const
_ defined? (11) -
const
_ get (11) -
const
_ load (11) -
const
_ source _ location (5) - constants (11)
- context (11)
-
convertible
_ int (22) - cooked (11)
-
count
_ nodes (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) - create (22)
-
create
_ id (11) - cycle (22)
- data (22)
- debug (11)
-
def
_ extend _ command (22) -
def
_ inspector (11) - default (33)
-
default
_ event _ sources (11) -
default
_ ole _ types (11) -
default
_ value (11) -
define
_ finalizer (22) -
define
_ method (22) -
define
_ singleton _ method (22) - delete (77)
-
delete
_ at (11) -
delete
_ field (11) -
delete
_ if (22) -
delete
_ observer (11) - deq (11)
- detect (22)
- difference (6)
- dig (36)
- disable (22)
- dispid (11)
- display (11)
- dlunwrap (11)
-
document
_ children (11) -
document
_ children= (11) - dump (55)
-
dump
_ stream (11) - each (111)
-
each
_ active _ object (6) -
each
_ char (22) -
each
_ child (22) -
each
_ line (44) -
each
_ object (22) -
each
_ prime (22) -
each
_ with _ object (22) - element (11)
- enable (22)
- entries (11)
-
enum
_ for (22) - eql? (33)
- equal? (11)
- eval (33)
- evaluate (11)
- event? (11)
-
event
_ interface (11) - exclusive (11)
- execute (11)
- exit (11)
-
exit
_ value (11) -
extend
_ object (17) - extended (11)
-
fast
_ generate (11) -
fast
_ unparse (11) - feed (11)
- fetch (62)
-
fetch
_ spec (11) - field (11)
- file (11)
- fill (66)
- filter (36)
-
filter
_ map (10) - find (22)
-
find
_ all (22) - first (66)
-
for
_ fd (11) - format (22)
-
garbage
_ collect (11) - generate (33)
- getbyte (11)
- getc (11)
- gets (11)
-
global
_ variables (11) - grep (11)
-
grep
_ v (11) - guid (22)
-
handle
_ interrupt (11) - handler (11)
- hash (46)
- helpcontext (22)
- helpfile (22)
-
implemented
_ ole _ types (11) - include (22)
- index (7)
- initialize (11)
-
initialize
_ copy (11) - inject (44)
- input? (11)
- inspect (72)
-
inspect
_ mode (11) -
install
_ extend _ commands (22) - instance (33)
-
instance
_ eval (22) -
instance
_ exec (11) -
instance
_ method (11) -
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) - intersection (5)
- invert (11)
- invkind (11)
- invoke (11)
-
invoke
_ kind (11) - irb (19)
-
irb
/ completion (11) -
irb
/ ext / math-mode (4) -
irb
_ exit (22) -
is
_ a? (11) - itself (11)
- j (11)
- jj (11)
- join (11)
- key (7)
-
kind
_ of? (11) -
laplace
_ expansion (11) - last (11)
-
last
_ value (11) -
latest
_ gc _ info (22) -
library
_ name (11) - listen (22)
- ln (11)
- load (33)
-
load
_ file (22) -
load
_ specs (11) -
load
_ stream (22) -
local
_ variable _ get (11) -
local
_ variables (11) - logger (22)
-
long
_ name (11) - loop (11)
- mail (33)
- main (22)
-
major
_ version (22) - map (22)
- match (44)
- max (60)
-
max
_ by (44) -
memsize
_ of (11) -
memsize
_ of _ all (11) -
method
_ missing (33) - methods (11)
- min (118)
-
min
_ by (44) -
minitest
/ spec (1) - minmax (42)
-
minmax
_ by (22) -
minor
_ version (22) - mktmpdir (22)
- modifiable (11)
-
module
_ eval (11) -
mon
_ synchronize (16) -
mu
_ pp (1) -
mu
_ synchronize (11) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) -
must
_ be _ nil (1) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
must
_ include (1) -
must
_ raise (1) - name (55)
- new (286)
-
new
_ with _ uri (11) - nil? (11)
- noecho (11)
- nonblock (11)
-
object
_ id (11) -
object
_ nl (11) -
object
_ nl= (11) -
offset
_ vtbl (11) - oid (22)
- oid= (11)
-
ole
_ classes (22) -
ole
_ methods (11) -
ole
_ type (33) -
ole
_ type _ detail (11) -
ole
_ typelib (22) -
ole
_ types (11) - on (132)
-
on
_ XXX (11) -
on
_ default (11) - open (360)
- optional? (11)
- output (11)
- parameters (8)
- params (11)
-
parent
_ file _ name (11) -
parent
_ name (11) - parse (33)
- parse! (11)
- partition (22)
- path (11)
-
pending
_ interrupt? (11) - pipe (88)
- pop (55)
- popen (154)
- pp (22)
- ppx (11)
-
pretty
_ generate (11) -
pretty
_ inspect (11) -
pretty
_ print (11) -
pretty
_ print _ cycle (11) -
pretty
_ print _ inspect (11) -
pretty
_ print _ instance _ variables (11) -
pretty
_ unparse (11) -
private
_ constant (9) -
private
_ instance _ methods (11) -
private
_ methods (11) - progid (11)
-
protected
_ instance _ methods (11) -
protected
_ methods (11) -
psych
_ to _ yaml (11) -
psych
_ y (11) - public (23)
-
public
_ constant (9) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ methods (22) -
public
_ send (22) - push (11)
- pushd (6)
- pushdir (6)
- putc (33)
- puts (11)
- raise (15)
- rand (22)
- raw (11)
-
rb
_ data _ object _ alloc (11) -
rb
_ define _ class _ under (11) -
rb
_ define _ global _ const (11) -
rb
_ extend _ object (11) -
rb
_ false (11) -
rb
_ mod _ extend _ object (11) -
rb
_ obj _ id (11) -
rb
_ obj _ inspect (11) -
rb
_ obj _ methods (11) -
rb
_ obj _ private _ methods (11) -
rb
_ obj _ protected _ methods (11) -
rb
_ obj _ singleton _ methods (11) -
rb
_ obj _ taint (11) -
rb
_ obj _ tainted (11) -
rb
_ obj _ untaint (11) -
rcptto
_ list (11) - rdoc (11)
-
reachable
_ objects _ from (11) -
read
_ nonblock (11) - readline (11)
- receiver (42)
-
recv
_ io (11) - reduce (33)
- register (11)
- reject (55)
-
remove
_ class _ variable (11) -
remove
_ instance _ variable (11) - report (11)
-
require
_ relative (11) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - responses (11)
- restore (22)
- result (22)
- resume (11)
-
return
_ type (11) -
return
_ type _ detail (11) -
return
_ value (11) -
return
_ vtype (11) - rewind (6)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
safe
_ load (17) - sample (22)
-
save
_ exception _ mode (11) -
save
_ limit (11) -
save
_ rounding _ mode (11) -
scan
_ full (11) -
search
_ full (11) - section (11)
- section= (11)
- select (72)
- self (11)
- sender (11)
-
set
_ last _ value (11) -
setup
_ argv (1) - sexp (11)
-
sexp
_ raw (11) -
sharing
_ detection (11) -
sharing
_ detection= (11) - shift (66)
-
short
_ name (11) -
singleline
_ format (11) -
singleline
_ pp (11) -
singleton
_ class (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) -
size
_ opt _ params (11) -
size
_ params (11) - slice (33)
- slice! (33)
- sn (11)
-
sort
_ by (22) -
source
_ ole _ types (11) - sprintf (11)
- sprintf フォーマット (11)
-
src
_ type (11) - start (107)
-
start
_ profile (6) - stat (12)
- string (11)
- sum (38)
- superclass (11)
- switch (44)
-
sync
_ synchronize (6) - synchronize (55)
- taint (9)
- tainted? (9)
- tcp (22)
-
thread
_ variable _ get (11) - throw (11)
- time (11)
- timeout (41)
-
to
_ a (22) -
to
_ enum (22) -
to
_ int (11) -
to
_ io (11) -
to
_ json (11) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ obj (22) -
to
_ proc (3) -
to
_ s (99) -
to
_ str (11) -
to
_ value (11) -
to
_ yaml (11) - tokenize (11)
-
trace
_ func (22) -
trace
_ object _ allocations (11) -
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) - transact (6)
- transaction (11)
- transfer (11)
-
try
_ convert (14) - typekind (11)
-
undefine
_ finalizer (11) - union (6)
- uniq (22)
- uniq! (22)
- unix (22)
-
unix
_ server _ socket (22) - unpack1 (8)
- unparse (11)
- unshift (11)
- untaint (9)
- value (22)
-
variable
_ kind (11) - variables (11)
- varkind (11)
- version (11)
- visible? (44)
-
win
_ platform? (11) -
with
_ index (22) -
with
_ object (44) -
with
_ werror (22) - wrap (44)
- write (11)
-
write
_ nonblock (11) - xmp (11)
- xpopen (11)
- y (11)
- yield (22)
-
yield
_ self (14) - zip (44)
- | (6)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
- セキュリティモデル (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 変数と定数 (11)
検索結果
先頭5件
-
irb (26096.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1>......義
=> "OK"
irb(main):005:0> x # x を表示
=> "OK"
irb(main):006:0> irb # サブ irb を起動
irb#1(main):001:0> x # x を表示
NameError: undefined local variable or method `x' for main:Object
from (irb#1):1:in `Kernel#binding'
起動... -
irb
/ ext / math-mode (26032.0) -
irb コマンドで実行結果を Object#inspect の代わりに Object#to_s した結果で表示するためのサブライブラリです。
...irb コマンドで実行結果を Object#inspect の代わりに
Object#to_s した結果で表示するためのサブライブラリです。
conf.math_mode か IRB.conf[:MATH_MODE] に true を設定する事で使用できま
す。ただし、inspect_mode が設定されていた場合は ins... -
irb
/ completion (26012.0) -
irb の completion 機能を提供するライブラリです。
...irb の completion 機能を提供するライブラリです。
=== 使い方
$ irb -r irb/completion
とするか, ~/.irbrc 中に
require "irb/completion"
を入れてください.
irb実行中に require "irb/completion" してもよいです.
irb 実行中に [Tab] を押すとコ.......
irb(main):001:0> in
in inspect instance_eval
include install_alias_method instance_of?
initialize install_aliases instance_variables
irb(main):001:0> inspect
"main"
irb(main):002:0> foo = Object.new
#<Object:0x40......覧がでます.
irb(main):003:0> foo.
foo.== foo.frozen? foo.protected_methods
foo.=== foo.hash foo.public_methods
foo.=~ foo.id foo.respond_to?
foo.__id__ foo.inspect f... -
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (23006.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
...ntation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレンスは一部未完成です。
それ以外のドキュメントについては、まだまだ書き直しが必要です。
=== 目次
* spec/intro......語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/literal
* spec/operator
* spec/control
* spec/call......f
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format
* glossary
* symref
* marshal_format
* license
* help......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って....../intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical
* spec/program
* spec/varia......ec/literal
* spec/operator
* spec/control
* spec/call
* spec/def
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.5 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.6 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.7 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.0 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.1 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.2 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......c/intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/lite......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って... -
Object
:: TOPLEVEL _ BINDING -> Binding (21400.0) -
トップレベルでの Binding オブジェクト。
...トップレベルでの Binding オブジェクト。
詳細は Binding を参照してください。... -
Object
# pretty _ print _ inspect -> String (21344.0) -
Object#pretty_print を使って Object#inspect と同様に オブジェクトを人間が読める形式に変換した文字列を返します。
...
Object#pretty_print を使って Object#inspect と同様に
オブジェクトを人間が読める形式に変換した文字列を返します。
出力する全てのオブジェクトに Object#pretty_print が定義されている必要があります。
そうでない場合には RuntimeEr......ror が発生します。
@raise RuntimeError 出力する全てのオブジェクトに Object#pretty_print が定義されて
いない場合に発生します。... -
Object
# pretty _ print _ instance _ variables -> [String | Symbol] (21300.0) -
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。 返されたインスタンス変数はプリティプリント時に表示されます。
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。
返されたインスタンス変数はプリティプリント時に表示されます。
pp に表示したくないインスタンス変数がある場合にこのメソッドを再定義します。 -
Object
# object _ id -> Integer (21279.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
...ェクト間で
重複しない整数(object_id)が各オブジェクトにひとつずつ割り当てられています。この
メソッドはその値を返します。
TrueClass, FalseClass, NilClass, Symbol, Integer クラス
のインスタンスなど Immutable(変更不可)なオブジ......じ object_id になります。
これは、Immutable ならば複数の場所から参照されても`破壊的操作'による問題が発生しないので、
同じ内容のインスタンスを複数生成しないという内部実装が理由です。
//emlist[][ruby]{
p "ruby".object_id #......=> 60
p "ruby".object_id #=> 80
p [].object_id #=> 100
p [].object_id #=> 120
p :ruby.object_id #=> 710428
p :ruby.object_id #=> 710428
p 11.object_id #=> 23
p 11.object_id #=> 23
p true.object_id #=> 20
p true.object_id #=> 20
//}
@see Object#equal?,Symbol... -
Object
# define _ singleton _ method(symbol) { . . . } -> Symbol (21224.0) -
self に特異メソッド name を定義します。
...m symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
//emlist[][ruby]{
class A
class <<......self
def class_name
to_s
end
end
end
A.define_singleton_method(:who_am_i) do
"I am: #{class_name}"
end
A.who_am_i # ==> "I am: A"
guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello #=> "Bob: Hello there!"
//}... -
Object
# define _ singleton _ method(symbol , method) -> Symbol (21224.0) -
self に特異メソッド name を定義します。
...m symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
//emlist[][ruby]{
class A
class <<......self
def class_name
to_s
end
end
end
A.define_singleton_method(:who_am_i) do
"I am: #{class_name}"
end
A.who_am_i # ==> "I am: A"
guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello #=> "Bob: Hello there!"
//}...