2705件ヒット
[1-100件を表示]
(0.101秒)
別のキーワード
ライブラリ
- ビルトイン (2004)
-
bigdecimal
/ util (7) - delegate (12)
- erb (24)
- forwardable (48)
- json (48)
-
json
/ add / bigdecimal (12) -
json
/ add / exception (12) - openssl (24)
- optparse (144)
- pp (36)
- rake (12)
-
rdoc
/ code _ object (12) -
rdoc
/ markup (12) -
rdoc
/ top _ level (12) - set (18)
- timeout (16)
- uri (12)
-
webrick
/ httpauth / userdb (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (96) - win32ole (48)
クラス
-
ARGF
. class (218) - BasicObject (144)
- BigDecimal (12)
- Class (52)
- ERB (24)
- Exception (24)
- FalseClass (24)
- Hash (50)
- IO (12)
- Integer (12)
-
JSON
:: Parser (12) - Method (142)
- Module (504)
- NameError (10)
- NilClass (43)
- Object (444)
-
OpenSSL
:: ASN1 :: ASN1Data (12) - OptionParser (144)
- PP (12)
- Proc (26)
-
RDoc
:: CodeObject (12) -
RDoc
:: Markup (12) -
RDoc
:: TopLevel (12) - Regexp (12)
-
RubyVM
:: InstructionSequence (12) - String (12)
- Thread (36)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
- TrueClass (36)
-
URI
:: Generic (12) - UnboundMethod (48)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (96) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ TYPELIB (24)
モジュール
- Enumerable (168)
- Forwardable (48)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) - Kernel (28)
-
WEBrick
:: HTTPAuth :: UserDB (12)
キーワード
- ! (12)
- != (12)
- & (12)
- < (12)
- << (14)
- == (24)
- === (20)
- >> (14)
- DelegateClass (12)
- [] (24)
- ^ (36)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (12) -
add
_ special (12) -
add
_ trace _ func (12) - allocate (12)
- arity (24)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) -
auth
_ type (12) - backtrace (12)
-
base
_ label (12) - bind (12)
- binmode (12)
- binmode? (12)
- bytes (14)
- call (24)
-
callee
_ id (12) -
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - closed? (12)
- component (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
def
_ class (12) -
def
_ delegator (12) -
def
_ instance _ delegator (12) -
def
_ module (12) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delegate (12)
- display (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) -
each
_ byte (24) -
each
_ data (12) -
each
_ entry (24) - eof (12)
- eof? (12)
- extend (12)
- filename (12)
- filename= (12)
-
find
_ local _ symbol (12) -
fixed
_ encoding? (12) - getbyte (12)
- getc (12)
- handler= (12)
-
http
_ version (12) - include? (12)
- inherited (12)
- initialize (12)
-
initialize
_ copy (12) - inspect (42)
-
instance
_ delegate (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) -
is
_ a? (12) -
json
_ creatable? (12) -
kind
_ of? (12) - lambda? (12)
- lineno= (12)
- list (12)
-
marshal
_ dump (12) -
marshal
_ load (12) - max (48)
- merge (24)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) - methods (12)
- min (48)
-
module
_ eval (24) -
module
_ exec (12) - name (36)
- name= (12)
- new (12)
- nil? (12)
-
object
_ group (12) -
ole
_ classes (12) -
ole
_ types (12) - on (144)
-
original
_ name (24) - owner (12)
- parameters (12)
- parse (12)
- pathmap (12)
- prepend (12)
-
prepend
_ features (12) -
pretty
_ print (12) -
pretty
_ print _ cycle (12) - private (48)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - putc (12)
-
read
_ nonblock (12) - readbyte (24)
- readpartial (12)
- receiver (22)
-
remove
_ class _ variable (12) -
remove
_ classes _ and _ modules (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) - replace (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - send (24)
-
set
_ encoding (36) -
set
_ trace _ func (12) -
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
sort
_ by (24) - subclasses (4)
-
tag
_ class (12) - timeout (16)
-
to
_ a (12) -
to
_ ary (24) -
to
_ bn (12) -
to
_ d (7) -
to
_ h (14) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (36) -
to
_ json _ raw _ object (12) -
to
_ proc (12) -
to
_ regexp (12) -
to
_ s (42) -
to
_ set (24) -
to
_ str (12) - unbind (12)
-
undef
_ method (12) - | (36)
検索結果
先頭5件
-
Class
# subclasses -> [Class] (21356.0) -
自身が直接のスーパークラスになっている(特異クラスを除く)クラスの配列を返します。 返り値の配列の順序は未定義です。
...を除く)クラスの配列を返します。
返り値の配列の順序は未定義です。
//emlist[例][ruby]{
class A; end
class B < A; end
class C < B; end
class D < A; end
A.subclasses # => [D, B]
B.subclasses # => [C]
C.subclasses # => []
//}
@see Class#superclass... -
Object
# class -> Class (21257.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?... -
Class
# json _ creatable? -> bool (15101.0) -
シリアライズされた JSON 形式の文字列から、インスタンスを作成するのにこのクラスを使用できる場合は 真を返します。そうでない場合は、偽を返します。
...json_create というメソッドを実装していなければなりません。
また json_create の第一引数は必要なデータを含むハッシュを期待しています。
//emlist[例][ruby]{
require "json"
String.json_creatable? # => true
Dir.json_creatable? # => false
//}... -
Module
# class _ variable _ defined?(name) -> bool (12232.0) -
name で与えられた名前のクラス変数がモジュールに存在する場合 true を 返します。
...@param name Symbol か String を指定します。
//emlist[例][ruby]{
class Fred
@@foo = 99
end
Fred.class_variable_defined?(:@@foo) #=> true
Fred.class_variable_defined?(:@@bar) #=> false
Fred.class_variable_defined?('@@foo') #=> true
Fred.class_variable_defined?('@@bar') #=> fal... -
Module
# class _ variables(inherit = true) -> [Symbol] (12232.0) -
クラス/モジュールに定義されているクラス変数の名前の配列を返します。
...例][ruby]{
class One
@@var1 = 1
end
class Two < One
@@var2 = 2
end
One.class_variables # => [:@@var1]
Two.class_variables # => [:@@var2, :@@var1]
Two.class_variables(false) # => [:@@var2]
//}
@see Module.constants, Kernel.#local_variables, Kernel.#global_variables, Object#i......nstance_variables, Module#constants... -
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
F......oo.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
F......oo.foo # NoMethodError: private method `foo' called for Foo:Class
Foo.public_class_method(:foo) # => Foo
Foo.foo # => "foo"
//}... -
Module
# remove _ class _ variable(name) -> object (12220.0) -
引数で指定したクラス変数を取り除き、そのクラス変数に設定さ れていた値を返します。
...Symbol を指定します。
@return 引数で指定されたクラス変数に設定されていた値を返します。
@raise NameError 引数で指定されたクラス変数がそのモジュールやクラスに定義されていない場合に発生します。
//emlist[例][ruby]{
class F......oo
@@foo = 1
remove_class_variable(:@@foo) # => 1
p @@foo # => uninitialized class variable @@foo in Foo (NameError)
end
//}
@see Module#remove_const, Object#remove_instance_variable... -
Module
# class _ variable _ get(name) -> object (12214.0) -
クラス/モジュールに定義されているクラス変数 name の値を返します。
...の値を返します。
@param name String または Symbol を指定します。
@raise NameError クラス変数 name が定義されていない場合、発生します。
//emlist[例][ruby]{
class Fred
@@foo = 99
end
def Fred.foo
class_variable_get(:@@foo)
end
p Fred.foo #=> 99
//}...