2189件ヒット
[1-100件を表示]
(0.081秒)
別のキーワード
ライブラリ
- ビルトイン (1860)
-
bigdecimal
/ util (7) - erb (24)
- json (36)
-
json
/ add / bigdecimal (12) -
json
/ add / exception (12) - openssl (12)
- optparse (144)
- pp (24)
- set (18)
- timeout (16)
- win32ole (24)
クラス
-
ARGF
. class (84) - 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)
- NilClass (43)
- Object (444)
- OptionParser (144)
- Proc (26)
- Regexp (12)
-
RubyVM
:: InstructionSequence (12) - Thread (36)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
- TrueClass (36)
- UnboundMethod (48)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (168)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (16)
キーワード
- ! (12)
- != (12)
- & (12)
- < (12)
- << (14)
- == (24)
- === (20)
- >> (14)
- [] (12)
- ^ (36)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (12) -
add
_ trace _ func (12) - allocate (12)
- arity (24)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - backtrace (12)
-
base
_ label (12) - bind (12)
- binmode (12)
- 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)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
def
_ class (12) -
def
_ module (12) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - display (12)
-
each
_ entry (24) - eof (12)
- eof? (12)
- extend (12)
-
fixed
_ encoding? (12) - getbyte (12)
- getc (12)
- handler= (12)
- include? (12)
- inherited (12)
- initialize (12)
-
initialize
_ copy (12) - inspect (42)
-
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)
-
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 (24)
- new (12)
- nil? (12)
- on (144)
-
original
_ name (24) - owner (12)
- parameters (12)
- parse (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) - readbyte (24)
- receiver (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) - replace (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - send (24)
-
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)
- timeout (16)
-
to
_ a (12) -
to
_ ary (12) -
to
_ bn (12) -
to
_ d (7) -
to
_ h (14) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (36) -
to
_ proc (12) -
to
_ regexp (12) -
to
_ s (42) -
to
_ set (24) -
to
_ str (12) - unbind (12)
-
undef
_ method (12) - | (36)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ a -> Array (29131.0) -
self の情報を 14 要素の配列にして返します。
...:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label
メソッド名、クラス名、モジュール名などで構成される命令シーケンスのラ
ベル。トップレベルでは "<ma......"<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type
命令シーケンスの種別。
:top、:method、:block、:class、:rescue、:ensure、:e......数名からなる Symbol の配列。
: args
引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。
[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]... -
Class
# subclasses -> [Class] (21468.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 (21381.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 (15213.0) -
シリアライズされた JSON 形式の文字列から、インスタンスを作成するのにこのクラスを使用できる場合は 真を返します。そうでない場合は、偽を返します。
...json_create というメソッドを実装していなければなりません。
また json_create の第一引数は必要なデータを含むハッシュを期待しています。
//emlist[例][ruby]{
require "json"
String.json_creatable? # => true
Dir.json_creatable? # => false
//}... -
Module
# class _ variable _ defined?(name) -> bool (12344.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] (12344.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#......instance_variables, Module#constants... -
Module
# public _ class _ method(*name) -> self (12339.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 (12339.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 (12332.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...