2719件ヒット
[1-100件を表示]
(0.069秒)
別のキーワード
ライブラリ
- ビルトイン (1749)
-
bigdecimal
/ util (7) - delegate (12)
- e2mmap (30)
- erb (12)
- etc (24)
-
fiddle
/ import (24) - getoptlong (24)
- json (12)
-
json
/ add / complex (12) -
json
/ add / exception (12) -
json
/ add / regexp (12) -
net
/ http (12) - openssl (36)
- optparse (168)
- pp (36)
- rake (12)
-
rdoc
/ context (36) -
rdoc
/ markup (12) -
rdoc
/ parser (12) -
rdoc
/ top _ level (24) - resolv (36)
-
rexml
/ streamlistener (12) -
rubygems
/ remote _ fetcher (12) - set (27)
- timeout (8)
- tsort (70)
- uri (24)
-
webrick
/ httpauth / userdb (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (96) -
win32
/ registry (12) - win32ole (48)
クラス
-
ARGF
. class (291) - Array (24)
- BasicObject (48)
- Class (12)
- Complex (12)
- ERB (12)
-
Enumerator
:: Lazy (6) -
Etc
:: Passwd (24) - Exception (24)
- FalseClass (60)
-
Gem
:: RemoteFetcher (12) - GetoptLong (24)
- Hash (79)
- Integer (12)
-
JSON
:: Parser (12) - Method (85)
- Module (528)
- NameError (10)
-
Net
:: HTTPResponse (12) - NilClass (38)
- Object (360)
-
OpenSSL
:: ASN1 :: ASN1Data (24) - OptionParser (168)
- PP (12)
- Proc (26)
-
RDoc
:: Context (36) -
RDoc
:: Markup (12) -
RDoc
:: Parser (12) -
RDoc
:: TopLevel (24) - Regexp (24)
-
Resolv
:: DNS (36) - Set (12)
- String (12)
- Thread (24)
-
Thread
:: Backtrace :: Location (24) - TracePoint (36)
- TrueClass (48)
-
URI
:: Generic (24) - UnboundMethod (24)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (96) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (24) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
- Enumerable (48)
- Exception2MessageMapper (30)
-
Fiddle
:: Importer (24) - Kernel (20)
-
REXML
:: StreamListener (12) - TSort (70)
-
WEBrick
:: HTTPAuth :: UserDB (12)
キーワード
- != (12)
- & (24)
- < (12)
- << (14)
- <=> (12)
- == (12)
- =~ (7)
- >> (14)
- DelegateClass (12)
- Fail (6)
- Raise (6)
- [] (12)
- ^ (24)
-
_ dump (12) -
absolute
_ path (12) - accept (12)
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) -
add
_ special (12) -
add
_ trace _ func (12) - ancestors (12)
-
append
_ features (12) - arity (24)
-
auth
_ type (12) - autoload (12)
- bind (12)
-
callee
_ id (12) -
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - classify (12)
- clone (24)
- codepoints (14)
- component (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
def
_ class (12) -
def
_ exception (6) -
default
_ event _ sources (12) -
default
_ port (12) -
define
_ method (24) -
defined
_ class (12) - display (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - dup (24)
-
each
_ char (24) -
each
_ codepoint (24) -
each
_ data (12) -
each
_ resource (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eager (6)
- entitydecl (12)
- error (12)
- error? (12)
- extend (12)
- fail (6)
- filename (12)
- filename= (12)
-
find
_ local _ symbol (12) -
fixed
_ encoding? (12) - getresource (12)
- getresources (12)
- gets (27)
-
http
_ version (12) - include (12)
- include? (12)
- included (12)
- initialize (12)
-
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (84)
-
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) -
is
_ a? (12) -
kind
_ of? (12) - lambda? (12)
- list (12)
-
marshal
_ dump (12) - merge (24)
-
method
_ id (12) -
method
_ missing (12) - methods (12)
-
module
_ eval (24) -
module
_ exec (12) - name (24)
- name= (12)
-
object
_ group (12) -
ole
_ classes (12) -
ole
_ type (12) -
ole
_ types (12) - on (144)
- parameters (12)
- parse (12)
-
parse
_ files _ matching (12) - path (12)
- pathmap (12)
- pos (12)
- pos= (12)
- prepend (12)
-
prepend
_ features (12) - prepended (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - putc (12)
- puts (12)
- rationalize (12)
-
read
_ nonblock (10) - readpartial (12)
- receiver (10)
- reject (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) - replace (12)
- request (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - send (24)
-
set
_ encoding (24) -
set
_ trace _ func (12) -
singleton
_ methods (12) - skip (12)
-
sort
_ by (24) -
strongly
_ connected _ components (12) - struct (12)
-
super
_ method (11) - superclass (12)
-
tag
_ class (12) -
tag
_ class= (12) - tell (12)
- timeout (8)
-
to
_ ary (24) -
to
_ bn (12) -
to
_ c (12) -
to
_ d (7) -
to
_ h (19) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (36) -
to
_ proc (24) -
to
_ regexp (12) -
to
_ s (48) -
to
_ set (24) -
to
_ str (12) - tsort (12)
- uclass (12)
- uclass= (12)
- union (12)
- value (12)
- | (24)
検索結果
先頭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
# 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
//}... -
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...