3862件ヒット
[1-100件を表示]
(0.083秒)
種類
ライブラリ
- ビルトイン (2143)
- csv (48)
- delegate (168)
- drb (24)
-
drb
/ timeridconv (12) - fiddle (12)
-
irb
/ ext / save-history (12) -
irb
/ inspector (12) - json (168)
- matrix (60)
-
minitest
/ spec (3) -
minitest
/ unit (1) - mkmf (24)
- monitor (48)
-
net
/ http (24) -
net
/ smtp (44) - objspace (12)
- openssl (96)
- ostruct (43)
- pathname (24)
- prime (108)
- pstore (60)
- psych (108)
-
rdoc
/ code _ object (12) -
rexml
/ document (36) -
ripper
/ filter (24) -
shell
/ filter (6) - singleton (24)
- socket (24)
- weakref (12)
-
webrick
/ httpauth / authenticator (12) - win32ole (132)
-
yaml
/ dbm (24) - zlib (12)
クラス
-
ARGF
. class (84) - Addrinfo (24)
- Array (435)
- BasicObject (48)
- CSV (24)
-
CSV
:: Table (12) -
DRb
:: DRbIdConv (12) -
DRb
:: TimerIdConv (12) - Data (3)
- Delegator (120)
- Enumerator (156)
-
Enumerator
:: Chain (21) -
Enumerator
:: Lazy (60) -
Enumerator
:: Yielder (24) -
Fiddle
:: Pointer (12) - Hash (60)
- IO (12)
-
IRB
:: Inspector (12) - Integer (16)
-
JSON
:: State (24) - Matrix (24)
- Method (24)
- Module (60)
- Monitor (12)
- NameError (12)
-
Net
:: HTTPGenericRequest (24) -
Net
:: SMTP (44) - Object (369)
-
OpenSSL
:: X509 :: Attribute (24) -
OpenSSL
:: X509 :: Name (36) -
OpenSSL
:: X509 :: Store (12) -
OpenSSL
:: X509 :: StoreContext (12) - OpenStruct (43)
- PStore (48)
-
PStore
:: DummyMutex (12) - Pathname (24)
- Prime (48)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (19)
-
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
Psych
:: Visitors :: YAMLTree (24) -
RDoc
:: CodeObject (12) -
REXML
:: Parent (36) - Random (36)
- Range (84)
- Regexp (24)
-
Ripper
:: Filter (24) -
Shell
:: Filter (6) - SimpleDelegator (36)
- StopIteration (12)
- String (48)
- Struct (49)
- Symbol (4)
- Thread (24)
- Vector (36)
-
WIN32OLE
_ METHOD (24) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (36) -
WIN32OLE
_ TYPELIB (24) -
WIN32OLE
_ VARIABLE (24) - WeakRef (12)
-
YAML
:: DBM (24) -
Zlib
:: GzipWriter (12)
モジュール
- Enumerable (291)
-
IRB
:: HistorySavingAbility (12) - JSON (84)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (24) - Kernel (159)
- Marshal (12)
-
MiniTest
:: Assertions (1) - MonitorMixin (24)
- ObjectSpace (36)
-
OpenSSL
:: ASN1 (12) - Psych (24)
- Singleton (12)
-
WEBrick
:: HTTPAuth :: Authenticator (12)
オブジェクト
- ENV (12)
キーワード
-
$ stdin (12) - % (12)
- & (12)
- - (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (36)
- == (12)
- === (12)
- Array (12)
- BasicObject (12)
- CSV (12)
- DATA (12)
- DRbProtocol (12)
- Enumerator (12)
- Float (12)
- HeaderConverters (12)
- Integer (12)
- MonitorMixin (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
OBJECT
_ DESCRIPTOR (12) - Ruby用語集 (12)
- SimpleDelegator (12)
- Singleton (12)
- String (12)
-
TOPLEVEL
_ BINDING (12) - [] (72)
-
_ _ getobj _ _ (36) -
_ _ setobj _ _ (24) - ancestors (12)
-
assert
_ respond _ to (1) - at (12)
- begin (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (24)
- clone (24)
-
cofactor
_ expansion (12) - collect (38)
- component (12)
-
connect
_ to (24) -
convertible
_ int (24) -
create
_ id (12) - cycle (12)
- deconstruct (9)
-
def
_ inspector (12) -
define
_ singleton _ method (24) - delete (24)
-
delete
_ at (12) -
delete
_ if (12) - detect (12)
- dump (24)
- dup (12)
- each (170)
-
each
_ byte (24) -
each
_ char (12) -
each
_ child (12) -
each
_ line (24) -
each
_ object (24) -
each
_ prime (12) -
each
_ with _ object (12) - element (12)
- end (12)
- entries (12)
-
enum
_ for (48) - extended (12)
- feed (12)
- fetch (48)
- filter (21)
-
filter
_ map (6) - find (12)
-
find
_ all (12) - first (48)
- force (12)
- format (12)
- freeze (12)
- generate (12)
-
handle
_ interrupt (12) - inspect (36)
- instance (12)
-
instance
_ methods (12) - intersection (6)
- irb (12)
-
irb
/ completion (12) -
irb
/ ext / math-mode (4) - keys (12)
- lambda (13)
-
laplace
_ expansion (12) - last (48)
- load (12)
- logger (12)
- loop (12)
- map (38)
-
marshal
_ dump (12) -
marshal
_ load (12) - match (24)
-
max
_ by (48) -
method
_ missing (24) - methods (12)
-
min
_ by (24) -
minmax
_ by (12) -
mon
_ synchronize (18) -
must
_ be _ close _ to (1) -
must
_ be _ within _ delta (1) -
must
_ respond _ to (1) - name (60)
-
net
/ smtp (12) - new (103)
- next (12)
-
next
_ values (12) -
on
_ XXX (12) -
on
_ default (12) - open (24)
- partition (12)
- peek (12)
-
peek
_ values (12) - pop (24)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
private
_ instance _ methods (12) - proc (14)
-
protected
_ instance _ methods (12) -
protected
_ methods (12) -
psych
_ to _ yaml (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ methods (12) - push (12)
- putc (24)
- rand (36)
-
rb
_ any _ to _ s (12) -
rb
_ obj _ singleton _ methods (12) -
rcptto
_ list (12) - rdoc (12)
- reject (24)
- replace (12)
-
respond
_ to? (24) -
respond
_ to _ missing? (12) - restore (24)
- result (12)
- rewind (7)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - sample (48)
- select (36)
- set (9)
- shift (24)
-
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
sort
_ by (12) - sprintf (12)
- sprintf フォーマット (12)
- start (32)
-
stop
_ doc (12) - store (24)
- synchronize (30)
- tap (12)
- then (14)
-
to
_ a (48) -
to
_ ary (12) -
to
_ enum (48) -
to
_ h (31) -
to
_ hash (36) -
to
_ int (12) -
to
_ io (12) -
to
_ json (12) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ obj (24) -
to
_ proc (16) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (108) -
to
_ str (12) -
to
_ value (12) -
to
_ yaml (12) - tokenize (12)
-
trace
_ object _ allocations _ stop (12) - transaction (12)
- transform (12)
- trust= (24)
-
try
_ convert (16) - uniq (24)
- uniq! (24)
- unparse (12)
- values (24)
-
with
_ index (24) -
with
_ object (48) - yield (12)
-
yield
_ self (16) - zip (48)
- | (18)
- クラス/メソッドの定義 (12)
- セキュリティモデル (5)
- メソッド呼び出し(super・ブロック付き・yield) (12)
検索結果
先頭5件
-
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (27236.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
...ド名
(public あるいは protected メソッド) の一覧を返します。
inherited_too が真のときは継承した特異メソッドを含みます。
継承した特異メソッドとは Object#extend によって追加された特異メソッドや、
self がクラスの場合はスー......クラスのクラスメソッド(Classのインスタンスの特異メソッド)などです。
singleton_methods(false) は、Object#methods(false) と同じです。
@param inherited_too 継承した特異メソッドを含める場合は真を、
そうでない場合は......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, :pu... -
Object
# respond _ to _ missing?(symbol , include _ private) -> bool (27173.0) -
自身が symbol で表されるメソッドに対し BasicObject#method_missing で反応するつもりならば真を返します。
...れるメソッドに対し
BasicObject#method_missing で反応するつもりならば真を返します。
Object#respond_to? はメソッドが定義されていない場合、
デフォルトでこのメソッドを呼びだし問合せます。
BasicObject#method_missing を override した....../^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_s......ample) # => true
s.respond_to?(:sample) # => false
//}
@see Object#respond_to?, BasicObject#method_missing... -
Object
# respond _ to?(name , include _ all = false) -> bool (27143.0) -
オブジェクトがメソッド name を持つとき真を返します。
...たメソッドで NotImplementedError が発生する場合は true を返します。
メソッドが定義されていない場合は、Object#respond_to_missing? を呼
び出してその結果を返します。
@param name Symbol または文字列で指定するメソッド名です。
@par......ate
def hello
"Guten Tag"
end
end
list = [F.new,D.new]
list.each{|it| puts it.hello if it.respond_to?(:hello)}
#=> Bonjour
list.each{|it| it.instance_eval("puts hello if it.respond_to?(:hello, true)")}
#=> Bonjour
# Guten Tag
module Template
def main
start
template_method......nd_to?(:template_method) # => true
# NotImplementedError が発生しているが、Rubyによる実装部のため true を返す
puts NotImplTemplateMethod.new.respond_to?(:template_method) # => true
# GNU/Linux で実行。C言語による実装部のため false を返す
puts File.respond_to?(:... -
Object
# to _ a -> Array (27137.0) -
オブジェクトを配列に変換した結果を返します。 デフォルトでは定義されていません。
...のメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
//emlist[][ruby]{
p( {'a'=>1}.to_a ) # [["a", 1]]
p ['array'].to_a # ["array"]
p nil.to_a # []
//}
@see Object#to_ary,Kernel.#Array... -
Object
# psych _ to _ yaml(options = {}) -> String (27126.0) -
オブジェクトを YAML document に変換します。
...照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。... -
Object
# to _ yaml(options = {}) -> String (27126.0) -
オブジェクトを YAML document に変換します。
...照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。... -
Object
# to _ ary -> Array (27125.0) -
オブジェクトの Array への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......すべての場面で代置可能であるような、
* 配列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_ary
[3,4]
end
end
it = Foo.new
p([1,2] + it) #=> [1, 2, 3, 4]
//}
@see Object#to_a,Kernel.#Array... -
Object
# to _ str -> String (27125.0) -
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する......面で代置可能であるような、
* 文字列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_str
'Edition'
end
end
it = Foo.new
p('Second' + it) #=> "SecondEdition"
//}
@see Object#to_s,Kernel.#String... -
Object
# to _ s -> String (27119.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...