7303件ヒット
[1-100件を表示]
(0.223秒)
種類
ライブラリ
- ビルトイン (3247)
- bigdecimal (33)
- coverage (7)
- csv (44)
- date (11)
- debug (11)
- delegate (66)
- digest (22)
- drb (33)
-
drb
/ extserv (11) - e2mmap (6)
- fiddle (44)
-
fiddle
/ import (11) - fileutils (24)
- gdbm (22)
-
io
/ console (11) -
io
/ nonblock (11) - ipaddr (11)
-
irb
/ cmd / subirb (11) -
irb
/ context (44) -
irb
/ ext / save-history (11) -
irb
/ extend-command (66) -
irb
/ inspector (11) -
irb
/ magic-file (22) -
irb
/ xmp (22) - json (143)
- matrix (55)
-
minitest
/ spec (6) -
minitest
/ unit (8) - mkmf (66)
-
net
/ ftp (22) -
net
/ http (22) -
net
/ imap (11) -
net
/ pop (121) -
net
/ smtp (67) - objspace (110)
- observer (11)
- open-uri (30)
- openssl (231)
- optparse (165)
- ostruct (31)
- pathname (22)
- pp (55)
- prettyprint (22)
- prime (55)
- profiler (12)
- pstore (11)
- psych (138)
- pty (22)
-
rdoc
/ code _ object (44) -
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 (11) -
rubygems
/ specification (11) -
rubygems
/ timer (11) -
rubygems
/ user _ interaction (11) - sdbm (11)
- shell (12)
-
shell
/ filter (18) -
shell
/ process-controller (6) - singleton (22)
- socket (55)
- strscan (22)
- tempfile (55)
-
test
/ unit (1) - thread (8)
- timeout (41)
- tmpdir (22)
- tracer (11)
- uri (11)
-
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (11) - win32ole (924)
-
yaml
/ dbm (88) - zlib (99)
クラス
-
ARGF
. class (121) - Addrinfo (22)
- Array (411)
- BasicObject (99)
- BigDecimal (33)
- Binding (22)
-
CSV
:: Row (33) -
CSV
:: Table (11) - Class (11)
- Coverage (7)
-
DRb
:: DRbObject (22) -
DRb
:: ExtServ (11) - Date (11)
- Delegator (22)
-
Digest
:: Base (11) - Dir (55)
- Enumerator (11)
-
Enumerator
:: Yielder (22) - Fiber (27)
-
Fiddle
:: Closure :: BlockCaller (11) -
Fiddle
:: Pointer (11) - File (33)
- GDBM (22)
-
Gem
:: ConfigFile (22) -
Gem
:: SpecFetcher (11) -
Gem
:: Specification (11) - Hash (100)
- IO (55)
- IPAddr (11)
-
IRB
:: Context (44) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: Inspector (11) - Integer (3)
-
JSON
:: State (22) - LocalJumpError (11)
- Matrix (22)
- Module (277)
-
Net
:: FTP (22) -
Net
:: HTTP (22) -
Net
:: IMAP :: ResponseCode (11) -
Net
:: POP3 (22) -
Net
:: POPMail (99) -
Net
:: SMTP (67) - Numeric (11)
- Object (504)
-
ObjectSpace
:: WeakMap (11) -
OpenSSL
:: ASN1 :: ObjectId (88) -
OpenSSL
:: X509 :: Attribute (44) -
OpenSSL
:: X509 :: Name (33) - OpenStruct (31)
- OptionParser (132)
- PP (33)
- PStore (11)
- Pathname (22)
- PrettyPrint (22)
- Prime (44)
-
Prime
:: PseudoPrimeGenerator (11) - Proc (2)
-
Psych
:: ScalarScanner (11) -
Psych
:: Visitors :: YAMLTree (22) -
RDoc
:: CodeObject (44) -
REXML
:: Attribute (11) -
REXML
:: Element (11) -
REXML
:: Elements (22) -
REXML
:: Parent (66) - Random (22)
- Range (55)
- 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 (22)
- StopIteration (11)
- String (66)
- StringScanner (22)
- Struct (43)
- Symbol (3)
- Tempfile (55)
- Thread (62)
-
Thread
:: Queue (11) -
Thread
:: SizedQueue (33) - TracePoint (66)
- Tracer (22)
- UNIXSocket (11)
- UnboundMethod (10)
- Vector (33)
-
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)
- Exception2MessageMapper (6)
- Fiddle (22)
- FileUtils (24)
- GC (23)
-
GC
:: Profiler (22) - Gem (11)
-
IRB
:: ContextExtender (22) -
IRB
:: ExtendCommandBundle (44) -
IRB
:: HistorySavingAbility (11) - JSON (77)
-
JSON
:: Generator :: GeneratorMethods :: Object (11) - Kernel (506)
- Marshal (66)
-
MiniTest
:: Assertions (8) - ObjectSpace (165)
- Observable (11)
-
OpenSSL
:: ASN1 (44) -
OpenSSL
:: X509 (11) -
OptionParser
:: Arguable (22) - PTY (22)
-
Profiler
_ _ (6) - Psych (61)
- RDoc (11)
- Singleton (11)
-
Test
:: Unit (1) - Timeout (19)
- URI (14)
-
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)
- << (33)
- <= (11)
- <=> (33)
- == (22)
- === (44)
- =~ (9)
- > (11)
- >= (11)
- ARGV (11)
- Arguable (11)
-
BUILD
_ RUBY _ PLATFORM (11) - ConsoleUI (11)
- DATA (11)
-
DEFAULT
_ OBJECT _ TYPE (11) - DRbObjectTemplate (11)
- Digest (11)
- Float (6)
- Importer (11)
- Integer (11)
- JSON (11)
-
KNOWN
_ CLASSES (11) -
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) - Marshal フォーマット (11)
- NIL (8)
-
OBJECT
_ DESCRIPTOR (11) -
OBJECT
_ TYPE _ TEMPLATE (11) - ObjectId (33)
-
Profiler
_ _ (6) -
RUBY
_ PATCHLEVEL (11) -
RUBY
_ PLATFORM (11) -
RUBY
_ RELEASE _ DATE (11) - Rational (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
-
SCRIPT
_ LINES _ _ (11) - SimpleDelegator (11)
- Singleton (11)
- String (11)
-
TOPLEVEL
_ BINDING (11) -
TRUST
_ OBJECT _ SIGN (11) - URI (11)
-
WIN32OLE
_ PARAM (11) -
WIN32OLE
_ TYPE (11) -
WIN32OLE
_ TYPELIB (11) -
WIN32OLE
_ VARIABLE (11) - [] (132)
- []= (11)
-
_ _ drbref (11) -
_ _ drburi (11) -
_ _ getobj _ _ (11) -
_ _ setobj _ _ (11) -
_ dump (11) -
_ getproperty (11) -
_ invoke (11) -
add
_ entry (11) - all (33)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
arg
_ config (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)
-
bind
_ call (10) - binding (11)
-
boot
_ defclass (11) - bsearch (22)
- call (11)
- catch (22)
- cd (12)
- chdir (12)
- clamp (8)
-
class
_ eval (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
class
_ variables (11) -
cofactor
_ expansion (11) - collect (33)
-
compare
_ by _ identity (11) - component (11)
- config (11)
- connect (11)
-
const
_ defined? (11) -
const
_ get (11) -
const
_ load (11) -
const
_ source _ location (5) - constants (11)
- context (11)
-
convertible
_ int (22) -
count
_ nodes (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) - create (22)
- cycle (22)
- data (11)
- 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)
- dig (36)
- disable (22)
- dispid (11)
- display (11)
- dlunwrap (11)
-
document
_ children (11) -
document
_ children= (11) - dump (33)
- each (88)
-
each
_ active _ object (6) -
each
_ char (22) -
each
_ child (22) -
each
_ line (44) -
each
_ object (11) -
each
_ with _ object (22) - element (11)
- enable (22)
- entries (11)
- eql? (33)
- equal? (11)
- eval (33)
- evaluate (11)
- event? (11)
-
event
_ interface (11) - exclusive (11)
- execute (11)
-
exit
_ value (11) -
extend
_ object (17) - extended (11)
- feed (11)
- fetch (51)
- field (11)
- file (11)
- fill (66)
- filter (36)
-
filter
_ map (10) - find (22)
-
find
_ all (22) - first (33)
- format (22)
-
garbage
_ collect (11) - generate (11)
- getbyte (11)
- getc (11)
- gets (11)
-
global
_ variables (11) - grep (11)
-
grep
_ v (11) - guid (22)
-
handle
_ interrupt (11) - handler (11)
- hash (11)
- helpcontext (22)
- helpfile (22)
-
implemented
_ ole _ types (11) - include (22)
- index (7)
- initialize (11)
-
initialize
_ copy (11) - inject (44)
- input? (11)
- inspect (17)
-
inspect
_ mode (11) -
install
_ extend _ commands (22) - instance (11)
-
instance
_ eval (22) -
instance
_ method (11) -
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) - invert (11)
- invkind (11)
- invoke (11)
-
invoke
_ kind (11) - irb (11)
-
irb
/ completion (11) -
irb
_ exit (11) -
is
_ a? (11) - itself (11)
- j (11)
- jj (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)
-
major
_ version (22) - map (22)
- match (44)
- max (60)
-
max
_ by (44) -
memsize
_ of _ all (11) -
method
_ missing (22) - methods (11)
- min (82)
-
min
_ by (44) - minmax (22)
-
minmax
_ by (22) -
minor
_ version (22) - mktmpdir (22)
- modifiable (11)
-
module
_ eval (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) - name (55)
- new (176)
- nil? (11)
- nonblock (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 (250)
- optional? (11)
- parameters (2)
- params (11)
-
parent
_ file _ name (11) - parse (11)
- partition (22)
- path (11)
-
pending
_ interrupt? (11) - pop (55)
-
pretty
_ generate (11) -
pretty
_ print _ cycle (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 (11)
- raise (5)
- 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) -
reachable
_ objects _ from (11) -
read
_ nonblock (11) - readline (11)
-
recv
_ io (11) - reduce (33)
- register (11)
- reject (33)
-
remove
_ class _ variable (11) -
remove
_ instance _ variable (11) - report (11)
-
require
_ relative (11) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - restore (22)
- result (22)
- resume (11)
-
return
_ type (11) -
return
_ type _ detail (11) -
return
_ value (11) -
return
_ vtype (11) -
ruby 1
. 8 . 2 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)
- select (72)
- self (11)
-
set
_ last _ value (11) -
setup
_ argv (1) - sexp (11)
-
sexp
_ raw (11) -
sharing
_ detection (11) -
sharing
_ detection= (11) - shift (55)
-
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)
-
src
_ type (11) - start (107)
-
start
_ profile (6) - stat (1)
- sum (22)
- superclass (11)
- taint (9)
- tainted? (9)
- tcp (22)
-
thread
_ variable _ get (11) - throw (11)
- time (11)
- timeout (41)
-
to
_ a (22) -
to
_ json (11) -
to
_ proc (3) -
to
_ s (55) -
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)
-
try
_ convert (14) - typekind (11)
-
undefine
_ finalizer (11) - uniq! (22)
- unparse (11)
- unshift (11)
- untaint (9)
- value (22)
-
variable
_ kind (11) - variables (11)
- varkind (11)
- version (11)
- visible? (44)
-
win
_ platform? (11) -
with
_ werror (22) - wrap (44)
- write (11)
-
write
_ nonblock (11) - xmp (11)
- xpopen (11)
- y (11)
- yield (22)
-
yield
_ self (14) - zip (44)
- | (6)
- セキュリティモデル (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 変数と定数 (11)
検索結果
先頭5件
-
irb
/ completion (32012.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... -
Object
:: TOPLEVEL _ BINDING -> Binding (27500.0) -
トップレベルでの Binding オブジェクト。
...トップレベルでの Binding オブジェクト。
詳細は Binding を参照してください。... -
Object
# pretty _ print _ instance _ variables -> [String | Symbol] (27400.0) -
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。 返されたインスタンス変数はプリティプリント時に表示されます。
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。
返されたインスタンス変数はプリティプリント時に表示されます。
pp に表示したくないインスタンス変数がある場合にこのメソッドを再定義します。 -
Object
# define _ singleton _ method(symbol) { . . . } -> Symbol (27324.0) -
self に特異メソッド name を定義します。
...self に特異メソッド name を定義します。
@param symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Sy......mbol を返します。
//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 (27324.0) -
self に特異メソッド name を定義します。
...self に特異メソッド name を定義します。
@param symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Sy......mbol を返します。
//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
# instance _ variable _ defined?(var) -> bool (27318.0) -
インスタンス変数 var が定義されていたら真を返します。
...Symbol で指定します。
//emlist[][ruby]{
class Fred
def initialize(p1, p2)
@a, @b = p1, p2
end
end
fred = Fred.new('cat', 99)
p fred.instance_variable_defined?(:@a) #=> true
p fred.instance_variable_defined?("@b") #=> true
p fred.instance_variable_defined?("@c") #=> false
//}......@see Object#instance_variable_get,Object#instance_variable_set,Object#instance_variables... -
irb (26108.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'
起動... -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (21501.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text......の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます。... -
WIN32OLE
_ TYPE # implemented _ ole _ types -> [WIN32OLE _ TYPE] (21406.0) -
この型が実装するインターフェイスを取得します。
...します。
implemented_ole_typesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスが実装しているすべてのインターフェイスを返します。
@return クラスが実装するすべてのインターフェイスをWIN32OLE_TYPEの......合は、
空配列を返します。
@raise WIN32OLERuntimeError 型属性が取得できない場合に通知します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.implemented_ole_types.map {|intf| intf.name} #=> ["_Worksheet", "DocEvents"]... -
ObjectSpace
. # undefine _ finalizer(obj) -> object (21401.0) -
obj に対するファイナライザをすべて解除します。 obj を返します。
...//emlist[例][ruby]{
class Sample
def Sample.callback
proc {
puts "finalize"
}
end
def initialize
ObjectSpace.define_finalizer(self, Sample.callback)
end
def undef
ObjectSpace.undefine_finalizer(self)
end
end
Sample.new
GC.start
# => finalize
Sample.new
sample.u......ndef
GC.start
# ※何も出力されない
//}
@see ObjectSpace.#define_finalizer...