別のキーワード
ライブラリ
- ビルトイン (1551)
-
bigdecimal
/ util (6) - delegate (11)
- e2mmap (30)
- erb (11)
- etc (22)
-
fiddle
/ import (22) - getoptlong (22)
- json (11)
-
json
/ add / complex (11) -
json
/ add / exception (11) -
json
/ add / regexp (11) -
net
/ http (11) - openssl (33)
- optparse (154)
- pp (33)
- rake (11)
-
rdoc
/ context (33) -
rdoc
/ markup (11) -
rdoc
/ parser (11) -
rdoc
/ top _ level (22) - resolv (33)
-
rexml
/ streamlistener (11) -
rubygems
/ remote _ fetcher (11) - set (33)
- timeout (11)
- tsort (64)
- uri (22)
-
webrick
/ httpauth / userdb (11) -
webrick
/ httpresponse (11) -
webrick
/ httpservlet / abstract (66) -
webrick
/ httputils (88) -
win32
/ registry (11) - win32ole (44)
クラス
-
ARGF
. class (267) - Array (22)
- BasicObject (44)
- Class (11)
- Complex (11)
- ERB (11)
-
Enumerator
:: Lazy (5) -
Etc
:: Passwd (22) - Exception (22)
- FalseClass (55)
-
Gem
:: RemoteFetcher (11) - GetoptLong (22)
- Hash (72)
- Integer (11)
-
JSON
:: Parser (11) - Method (77)
- Module (443)
- NameError (9)
-
Net
:: HTTPResponse (11) - NilClass (34)
- Object (330)
-
OpenSSL
:: ASN1 :: ASN1Data (22) - OptionParser (154)
- PP (11)
- Proc (23)
-
RDoc
:: Context (33) -
RDoc
:: Markup (11) -
RDoc
:: Parser (11) -
RDoc
:: TopLevel (22) - Regexp (22)
-
Resolv
:: DNS (33) - Set (11)
- String (11)
- Thread (22)
-
Thread
:: Backtrace :: Location (22) - TracePoint (33)
- TrueClass (44)
-
URI
:: Generic (22) - UnboundMethod (22)
-
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (66) -
WEBrick
:: HTTPUtils :: FormData (88) -
WIN32OLE
_ TYPE (22) -
WIN32OLE
_ TYPELIB (22) -
Win32
:: Registry :: PredefinedKey (11)
モジュール
- Enumerable (44)
- Exception2MessageMapper (30)
-
Fiddle
:: Importer (22) - Kernel (22)
-
REXML
:: StreamListener (11) - TSort (64)
-
WEBrick
:: HTTPAuth :: UserDB (11)
キーワード
- != (11)
- & (22)
- < (11)
- << (12)
- <=> (11)
- == (11)
- =~ (6)
- >> (12)
- DelegateClass (11)
- Fail (6)
- Raise (6)
- [] (11)
- ^ (22)
-
_ dump (11) -
absolute
_ path (11) - accept (11)
-
add
_ class (11) -
add
_ class _ or _ module (22) -
add
_ module (11) -
add
_ special (11) -
add
_ trace _ func (11) - ancestors (11)
-
append
_ features (11) - arity (22)
-
auth
_ type (11) - autoload (11)
- bind (11)
-
callee
_ id (11) -
class
_ eval (22) -
class
_ exec (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) - classify (11)
- clone (22)
- codepoints (14)
- component (11)
-
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
-
def
_ class (11) -
def
_ exception (6) -
default
_ event _ sources (11) -
default
_ port (11) -
define
_ method (22) -
defined
_ class (11) - display (11)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - dup (22)
-
each
_ char (22) -
each
_ codepoint (22) -
each
_ data (11) -
each
_ resource (11) -
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (21) - eager (5)
- entitydecl (11)
- error (11)
- error? (11)
- extend (11)
- fail (6)
- filename (11)
- filename= (11)
-
find
_ local _ symbol (11) -
fixed
_ encoding? (11) - getresource (11)
- getresources (11)
- gets (24)
-
http
_ version (11) - include (11)
- include? (11)
- included (11)
- initialize (11)
-
initialize
_ copy (11) -
inplace
_ mode (11) -
inplace
_ mode= (11) - inspect (77)
-
instance
_ eval (22) -
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variables (11) -
is
_ a? (11) -
kind
_ of? (11) - lambda? (11)
- list (11)
-
marshal
_ dump (11) - merge (22)
-
method
_ id (11) -
method
_ missing (11) - methods (11)
-
module
_ eval (22) -
module
_ exec (11) - name (22)
- name= (11)
-
object
_ group (11) -
ole
_ classes (11) -
ole
_ type (11) -
ole
_ types (11) - on (132)
- parameters (11)
- parse (11)
-
parse
_ files _ matching (11) - path (11)
- pathmap (11)
- pos (11)
- pos= (11)
- prepend (11)
-
prepend
_ features (11) - prepended (11)
-
pretty
_ print (11) -
pretty
_ print _ cycle (11) - print (11)
- printf (11)
- private (23)
-
private
_ class _ method (15) -
private
_ constant (11) -
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ class _ method (15) -
public
_ constant (11) -
public
_ method (11) -
public
_ method _ defined? (11) - putc (11)
- puts (11)
- rationalize (11)
-
read
_ nonblock (9) - readpartial (11)
- receiver (9)
- reject (11)
-
remove
_ class _ variable (11) -
remove
_ const (11) -
remove
_ instance _ variable (11) - replace (11)
- request (11)
-
respond
_ to? (11) -
respond
_ to _ missing? (11) - send (22)
-
set
_ encoding (22) -
set
_ trace _ func (11) -
singleton
_ methods (11) - skip (11)
-
sort
_ by (22) -
strongly
_ connected _ components (11) - struct (11)
-
super
_ method (10) - superclass (11)
-
tag
_ class (11) -
tag
_ class= (11) - tell (11)
- timeout (11)
-
to
_ ary (22) -
to
_ bn (11) -
to
_ c (11) -
to
_ d (6) -
to
_ h (17) -
to
_ hash (11) -
to
_ int (11) -
to
_ json (33) -
to
_ proc (22) -
to
_ regexp (11) -
to
_ s (44) -
to
_ set (22) -
to
_ str (11) - tsort (11)
- uclass (11)
- uclass= (11)
- union (11)
- value (11)
- | (22)
検索結果
先頭5件
-
Class
# superclass -> Class | nil (21320.0) -
自身のスーパークラスを返します。
...]{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
BasicObject.superclass #=> nil......//}
@see Class#subclasses... -
Win32
:: Registry :: PredefinedKey # class (21102.0) -
@todo
@todo -
Object
# class -> Class (18293.0) -
レシーバのクラスを返します。
...レシーバのクラスを返します。
//emlist[][ruby]{
p "ruby".class #=> String
p 100.class #=> Integer
p ARGV.class #=> Array
p self.class #=> Object
p Class.class #=> Class
p Kernel.class #=> Module
//}
@see Class#superclass,Object#kind_of?,Object#instance_of?... -
Module
# public _ class _ method(*name) -> self (12227.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...の
可視性を public に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end......Foo.foo # NoMethodError: private method `foo' called for Foo:Class
Foo.public_class_method(:foo) # => Foo
Foo.foo # => "foo"
//}... -
Module
# public _ class _ method(names) -> self (12227.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...の
可視性を public に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end......Foo.foo # NoMethodError: private method `foo' called for Foo:Class
Foo.public_class_method(:foo) # => Foo
Foo.foo # => "foo"
//}... -
Module
# public _ class _ method(*name) -> self (12226.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...性を public に変更します。
@param name 0 個以上の String または Symbol を指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMethodError: private method `foo' called for Foo:Class
Foo.public_class_method(... -
Module
# private _ class _ method(*name) -> self (12221.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...の
可視性を private に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
module Foo
def self.foo; end
end
Foo.singleton_class.private_method_d......efined?(:foo) # => false
Foo.private_class_method(:foo) # => Foo
Foo.singleton_class.private_method_defined?(:foo) # => true
//}... -
Module
# private _ class _ method(names) -> self (12221.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...の
可視性を private に変更します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
module Foo
def self.foo; end
end
Foo.singleton_class.private_method_d......efined?(:foo) # => false
Foo.private_class_method(:foo) # => Foo
Foo.singleton_class.private_method_defined?(:foo) # => true
//}... -
Module
# private _ class _ method(*name) -> self (12220.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を private に変更します。
...性を private に変更します。
@param name 0 個以上の String または Symbol を指定します。
//emlist[例][ruby]{
module Foo
def self.foo; end
end
Foo.singleton_class.private_method_defined?(:foo) # => false
Foo.private_class_method(:foo) # => Foo
Foo.singleton_class.private_m... -
Object
# pretty _ print(pp) -> () (12207.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに
呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
あるクラスの pp の出力をカスタマイズしたい場合は、このメソッドを再定義します。
そのと...... pretty_print メソッドは指定された pp に対して表示したい自身の内容を追加して
いかなければいけません。いくつかの組み込みクラスについて、
pp ライブラリはあらかじめ pretty_print メソッドを定義しています。
@param pp PP......ブジェクトです。
//emlist[][ruby]{
require 'pp'
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable......オブジェクトです。
//emlist[][ruby]{
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable... -
Object
# pretty _ print _ cycle(pp) -> () (12207.0) -
プリティプリント時にオブジェクトの循環参照が検出された場合、 Object#pretty_print の代わりに呼ばれるメソッドです。
...Object#pretty_print の代わりに呼ばれるメソッドです。
あるクラスの pp の出力をカスタマイズしたい場合は、
このメソッドも再定義する必要があります。
@param pp PP オブジェクトです。
//emlist[][ruby]{
class Array
def pretty_print_cy......cle(q)
q.text(empty? ? '[]' : '[...]')
end
end
//}
@see Object#pretty_print... -
RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (9709.0) -
collection に name で指定したクラス、モジュールを追加します。
...を追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ......ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。
既に登録済みであった場合... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (9402.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定...