5308件ヒット
[1-100件を表示]
(0.110秒)
別のキーワード
種類
ライブラリ
- ビルトイン (2408)
- bigdecimal (36)
-
cgi
/ session (12) - coverage (8)
- csv (12)
- delegate (180)
- digest (24)
- drb (36)
-
drb
/ gw (12) - e2mmap (6)
- etc (24)
- fiber (8)
- fiddle (24)
- gdbm (60)
- ipaddr (12)
-
irb
/ ext / save-history (12) -
irb
/ inspector (12) -
irb
/ magic-file (24) - json (192)
- matrix (24)
-
minitest
/ spec (3) -
minitest
/ unit (9) - mkmf (12)
-
net
/ http (24) -
net
/ imap (36) -
net
/ pop (36) -
net
/ smtp (12) - objspace (48)
- open-uri (16)
- openssl (168)
- optparse (156)
- ostruct (34)
- pp (84)
- prettyprint (24)
- prime (120)
- psych (87)
- rake (24)
-
rdoc
/ code _ object (36) -
rdoc
/ known _ classes (12) - resolv (24)
- rubygems (12)
-
rubygems
/ config _ file (24) -
rubygems
/ spec _ fetcher (24) -
rubygems
/ specification (24) -
rubygems
/ timer (12) -
rubygems
/ user _ interaction (12) -
shell
/ filter (6) - singleton (24)
- socket (36)
- stringio (48)
- strscan (48)
-
test
/ unit (1) - timeout (9)
- tmpdir (12)
- tracer (12)
- weakref (12)
-
webrick
/ cgi (12) -
webrick
/ httpauth / authenticator (12) -
webrick
/ httpauth / basicauth (12) -
webrick
/ server (12) - win32ole (564)
-
yaml
/ dbm (60) - zlib (108)
クラス
-
ARGF
. class (192) - Addrinfo (24)
- Array (106)
- BasicObject (96)
- BigDecimal (36)
- Binding (44)
-
CGI
:: Session (12) - CSV (12)
- Class (12)
- Complex (12)
- Coverage (8)
-
DRb
:: DRbObject (24) -
DRb
:: GW (12) - Data (3)
- Delegator (120)
-
Digest
:: Base (12) - Dir (48)
- Enumerator (48)
-
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (60) - Fiber (48)
-
Fiddle
:: Closure :: BlockCaller (12) - GDBM (60)
-
Gem
:: ConfigFile (24) -
Gem
:: SpecFetcher (24) -
Gem
:: Specification (24) - Hash (10)
- IO (120)
- IPAddr (12)
-
IRB
:: Inspector (12) - Integer (28)
-
JSON
:: State (36) - MatchData (12)
- Matrix (24)
- Method (68)
- Module (92)
- NameError (12)
-
Net
:: HTTPGenericRequest (24) -
Net
:: IMAP (12) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: UntaggedResponse (12) -
Net
:: POPMail (36) -
Net
:: SMTP (12) - NoMethodError (12)
- Object (505)
-
OpenSSL
:: ASN1 :: ObjectId (84) -
OpenSSL
:: X509 :: Attribute (12) -
OpenSSL
:: X509 :: Name (24) - OpenStruct (34)
- OptionParser (108)
-
OptionParser
:: ParseError (12) - PP (48)
- PrettyPrint (24)
- Prime (48)
-
Prime
:: PseudoPrimeGenerator (48) -
Psych
:: ScalarScanner (12) -
RDoc
:: CodeObject (36) -
Rake
:: TaskArguments (24) - Random (24)
- Range (200)
- Rational (12)
- Regexp (36)
-
Resolv
:: DNS (24) -
Shell
:: Filter (6) - SimpleDelegator (36)
- String (93)
- StringIO (48)
- StringScanner (48)
- Struct (10)
- Thread (24)
- Time (12)
- Tracer (12)
- UNIXSocket (12)
- UnboundMethod (12)
- UncaughtThrowError (22)
-
WEBrick
:: CGI (12) -
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPAuth :: BasicAuth (12) - WIN32OLE (60)
-
WIN32OLE
_ METHOD (168) -
WIN32OLE
_ PARAM (48) -
WIN32OLE
_ TYPE (144) -
WIN32OLE
_ TYPELIB (84) -
WIN32OLE
_ VARIABLE (60) - WeakRef (12)
-
YAML
:: DBM (60) -
Zlib
:: GzipReader (48) -
Zlib
:: GzipWriter (60)
モジュール
- Comparable (6)
- DRb (12)
- Enumerable (132)
- Etc (24)
- Exception2MessageMapper (6)
- Fiddle (12)
- GC (26)
-
GC
:: Profiler (24) - Gem (12)
-
IRB
:: HistorySavingAbility (12) - JSON (96)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (24) - Kernel (284)
- Marshal (36)
-
MiniTest
:: Assertions (9) - ObjectSpace (84)
-
OpenSSL
:: ASN1 (36) -
OpenSSL
:: X509 (12) -
OptionParser
:: Arguable (24) -
Process
:: GID (24) -
Process
:: UID (12) - Psych (31)
- RDoc (12)
- Singleton (12)
-
Test
:: Unit (1) - Timeout (9)
- URI (8)
-
WEBrick
:: HTTPAuth :: Authenticator (12)
オブジェクト
-
IRB
:: MagicFile (24)
キーワード
-
$ * (12) -
$ -i (12) -
$ . (12) -
$ FILENAME (12) -
$ _ (12) - % (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (12)
- == (12)
- === (32)
- ARGF (24)
- ARGV (24)
- Arguable (12)
- Array (12)
-
BUILD
_ RUBY _ PLATFORM (12) - Binding (12)
- ConsoleUI (12)
-
DEFAULT
_ OBJECT _ TYPE (12) - DelegateClass (12)
- Digest (12)
- Float (12)
- Id (12)
- Integer (12)
-
KNOWN
_ CLASSES (12) -
MAJOR
_ VERSION (12) -
MINOR
_ VERSION (12) - Marshal フォーマット (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - OBJECT (12)
-
OBJECT
_ DESCRIPTOR (12) -
OBJECT
_ TYPE _ TEMPLATE (12) - ObjectId (12)
-
RUBY
_ COPYRIGHT (12) -
RUBY
_ DESCRIPTION (12) -
RUBY
_ ENGINE (12) -
RUBY
_ ENGINE _ VERSION (10) -
RUBY
_ PATCHLEVEL (12) -
RUBY
_ PLATFORM (12) -
RUBY
_ RELEASE _ DATE (12) -
RUBY
_ REVISION (12) -
RUBY
_ VERSION (12) - Ruby用語集 (12)
-
SC
_ SHARED _ MEMORY _ OBJECTS (12) -
SC
_ TYPED _ MEMORY _ OBJECTS (12) - SimpleDelegator (12)
- Singleton (12)
- String (12)
-
TOPLEVEL
_ BINDING (12) -
TRUST
_ OBJECT _ SIGN (12) - Version (12)
- [] (108)
-
_ _ drbref (12) -
_ _ drburi (12) -
_ _ getobj _ _ (36) -
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ _ setobj _ _ (24) -
_ dump (12) -
_ getproperty (12) -
_ invoke (12) - all (12)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) -
arg
_ config (12) - args (12)
- argv (12)
-
array
_ attributes (12) -
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) - attr (12)
- begin (12)
-
bind
_ call (12) - binding (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (24)
- call (36)
- catch (24)
- clamp (18)
-
class
_ exec (12) -
class
_ variable _ get (12) -
cofactor
_ expansion (12) - comment (12)
- config (12)
-
const
_ get (12) -
const
_ source _ location (12) - coverage (8)
-
create
_ id (12) - data (12)
- debug (12)
-
def
_ inspector (12) -
default
_ value (12) -
define
_ singleton _ method (24) - delete (24)
- dig (40)
- dispid (12)
- dump (36)
-
dump
_ stream (12) - each (158)
-
each
_ byte (24) -
each
_ char (24) -
each
_ line (48) -
each
_ object (24) -
each
_ prime (24) -
each
_ with _ object (12) - end (12)
- entries (12)
-
enum
_ for (48) - eql? (12)
- eval (12)
-
event
_ interface (12) -
extend
_ object (6) - extended (12)
-
fast
_ generate (12) -
fast
_ unparse (12) - fetch (12)
-
fetch
_ spec (12) - file (12)
- fill (48)
- first (24)
- force (12)
- format (24)
- freeze (12)
-
garbage
_ collect (12) - generate (36)
- getbyte (12)
- getc (12)
- gets (12)
-
global
_ variables (12) - grep (24)
-
grep
_ v (24) - guid (24)
- hash (51)
- helpcontext (24)
- helpfile (24)
- initialize (12)
- inspect (78)
- instance (12)
-
instance
_ exec (12) -
instance
_ variable _ get (12) - invert (12)
- invkind (12)
- invoke (12)
-
invoke
_ kind (12) - irb (9)
-
laplace
_ expansion (12) - last (24)
-
latest
_ gc _ info (24) -
library
_ name (12) - listen (24)
- ln (12)
-
load
_ file (12) -
load
_ specs (12) -
local
_ variable _ get (12) - logger (24)
-
long
_ name (12) - lookup (12)
- mail (12)
-
major
_ version (24) -
marshal
_ dump (12) -
marshal
_ load (12) - match (48)
- max (46)
-
max
_ by (48) -
memsize
_ of (12) -
memsize
_ of _ all (12) -
method
_ missing (36) - methods (12)
- min (46)
- minmax (12)
-
minor
_ version (24) - mktmpdir (12)
-
module
_ exec (12) -
mu
_ pp (1) -
must
_ match (1) -
must
_ raise (1) -
must
_ throw (1) - name (60)
- new (60)
-
object
_ group (12) -
object
_ id (12) -
object
_ nl (12) -
object
_ nl= (12) -
offset
_ vtbl (12) - oid (24)
-
ole
_ type (36) -
ole
_ type _ detail (12) - on (108)
- open (184)
- p (12)
-
parent
_ file _ name (12) -
parent
_ name (12) - path (12)
-
pending
_ interrupt? (12) - pop (12)
- popen (96)
-
pretty
_ generate (12) -
pretty
_ inspect (12) -
pretty
_ print _ inspect (12) -
pretty
_ print _ instance _ variables (12) -
pretty
_ unparse (12) - progid (12)
-
protected
_ methods (12) -
psych
_ to _ yaml (12) -
psych
_ yaml _ as (4) - public (12)
-
public
_ methods (12) -
public
_ send (24) - putc (36)
- raise (12)
- rand (24)
-
rb
_ define _ global _ const (12) -
rb
_ obj _ singleton _ methods (12) -
read
_ nonblock (12) - readline (12)
- receiver (11)
-
recv
_ io (12) - register (12)
- reject (12)
- report (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - responses (12)
- result (12)
- resume (12)
-
return
_ type (12) -
return
_ type _ detail (12) -
return
_ vtype (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
safe
_ load (7) -
save
_ exception _ mode (12) -
save
_ limit (12) -
save
_ rounding _ mode (12) -
scan
_ full (12) -
search
_ full (12) - select (12)
- send (24)
-
setup
_ argv (1) -
sharing
_ detection (12) -
sharing
_ detection= (12) - shift (12)
-
short
_ name (12) -
singleline
_ format (12) -
singleline
_ pp (12) -
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
size
_ opt _ params (12) -
size
_ params (12) - slice (12)
- slice! (12)
- sn (12)
- sprintf (12)
- sprintf フォーマット (12)
-
src
_ type (12) - start (8)
- stat (2)
- string (12)
- switch (36)
- tag (11)
-
thread
_ variable _ get (12) - throw (12)
- time (12)
- timeout (9)
-
to
_ a (24) -
to
_ enum (48) -
to
_ int (12) -
to
_ json (12) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ regexp (12) -
to
_ s (108) -
to
_ str (12) -
to
_ yaml (12) - tokenize (12)
-
trace
_ func (12) - transfer (12)
-
try
_ convert (16) - typekind (12)
- unpack1 (9)
- unparse (12)
- value (11)
-
variable
_ kind (12) - varkind (12)
-
win
_ platform? (12) -
with
_ index (12) -
with
_ object (36) - wrap (48)
-
write
_ nonblock (12) -
yaml
_ as (4) -
yaml
_ tag (12) - yield (12)
検索結果
先頭5件
-
Object
# object _ id -> Integer (27279.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
...では、(Garbage Collectされていない)アクティブなオブジェクト間で
重複しない整数(object_id)が各オブジェクトにひとつずつ割り当てられています。この
メソッドはその値を返します。
TrueClass, FalseClass, NilClass, Symbol, Integer クラ......じ 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
# instance _ variable _ get(var) -> object | nil (27219.0) -
オブジェクトのインスタンス変数の値を取得して返します。
...Foo
def initialize
@foo = 1
end
end
obj = Foo.new
p obj.instance_variable_get("@foo") #=> 1
p obj.instance_variable_get(:@foo) #=> 1
p obj.instance_variable_get(:@bar) #=> nil
//}
@see Object#instance_variable_set,Object#instance_variables,Object#instance_variable_defined?... -
Object
# to _ regexp -> Regexp (27206.0) -
オブジェクトの Regexp への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...オブジェクトの Regexp への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必......ての場面で代置可能であるような、
* 正規表現そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_regexp
/[\d]+/
end
end
it = Foo.new
p Regexp.union(/^at/, it) #=> /(?-mix:^at)|(?-mix:[\d]+)/
//}... -
Object
:: ARGF -> Object (27201.0) -
引数 (なければ標準入力) で構成される仮想ファイル (詳細は ARGF、ARGF.class を参照)。
...入力) で構成される仮想ファイル
(詳細は ARGF、ARGF.class を参照)。
つまり Kernel.#gets は ARGF.class#gets と同じ意味です。
ARGF.class#file で現在読み込み中のファイルオブジェクトが、
ARGF.class#filename で現在読み込み中のファイル名... -
Object
:: TOPLEVEL _ BINDING -> Binding (27200.0) -
トップレベルでの Binding オブジェクト。
...トップレベルでの Binding オブジェクト。
詳細は Binding を参照してください。... -
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (27136.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
...た特異メソッドとは Object#extend によって追加された特異メソッドや、
self がクラスの場合はスーパークラスのクラスメソッド(Classのインスタンスの特異メソッド)などです。
singleton_methods(false) は、Object#methods(false) と同じで......nd
public; def public_self() end
end
# あるオブジェクトの特異メソッドの一覧を得る。
p obj.singleton_methods(false)
p obj.methods(false)
p Foo.singleton_methods(false)
#実行結果
[:protected_self, :public_self]
[:protected_self, :public_self]
[:protected_class_foo,......スのクラスメソッドも含まれるよう true を指定したが、
# Object のクラスメソッドは一覧から排除している。
p obj.singleton_methods(true)
p Foo.singleton_methods(true) - Object.singleton_methods(true)
#実行結果
[:protected_self, :public_self, :protected_b... -
Object
. yaml _ tag(tag) -> () (27124.0) -
クラスと tag の間を関連付けます。
...クラスと tag の間を関連付けます。
これによって tag 付けされた YAML ドキュメントを Ruby のオブジェクトに
変換したりその逆をしたりすることができます。
@param tag 対象のクラスに関連付けるタグの文字列
=== Example
requir......nd
# Dumps Ruby object normally
p Psych.dump(Foo.new(3))
# =>
# --- !ruby/object:Foo
# x: 3
# Registers tag with class Foo
Foo.yaml_as("tag:example.com,2013:foo")
# ... and dumps the object of Foo class
Psych.dump(Foo.new(3), STDOUT)
# =>
# --- !<tag:example.com,2013:f......oo>
# x: 3
# Loads the object from the tagged YAML node
p Psych.load(<<EOS)
--- !<tag:example.com,2012:foo>
x: 8
EOS
# => #<Foo:0x0000000130f48 @x=8>... -
Object
# singleton _ class -> Class (27118.0) -
レシーバの特異クラスを返します。 まだ特異クラスがなければ、新しく作成します。
...します。
@raise TypeError レシーバが Integer、Float、Symbol の場合に発生します。
//emlist[][ruby]{
Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
String.singleton_class #=> #<Class:String>
nil.singleton_class #=> NilClass
//}
@see Object#class... -
Object
# respond _ to _ missing?(symbol , include _ private) -> bool (27112.0) -
自身が symbol で表されるメソッドに対し BasicObject#method_missing で反応するつもりならば真を返します。
...メソッドに対し
BasicObject#method_missing で反応するつもりならば真を返します。
Object#respond_to? はメソッドが定義されていない場合、
デフォルトでこのメソッドを呼びだし問合せます。
BasicObject#method_missing を override した場合......issing(name, *args)
if name =~ /^to_*/
[name, *args] # => [:to_sample, "sample args1", "sample args2"]
return
else
super
end
end
def respond_to_missing?(sym, include_private)
(sym =~ /^to_*/) ? true : super
end
end
s = Sample.new
s.to_sample("sample args1",......"sample args2")
s.respond_to?(:to_sample) # => true
s.respond_to?(:sample) # => false
//}
@see Object#respond_to?, BasicObject#method_missing...