453件ヒット
[1-100件を表示]
(0.078秒)
ライブラリ
- ビルトイン (321)
- mkmf (36)
- rake (12)
-
rake
/ gempackagetask (12) -
rake
/ packagetask (12) -
rake
/ rdoctask (12) -
rdoc
/ context (12) -
win32
/ registry (24) - win32ole (12)
クラス
- BasicObject (12)
- Binding (12)
- Data (21)
-
Encoding
:: UndefinedConversionError (60) - Method (12)
- Module (144)
- Object (36)
- Proc (12)
-
RDoc
:: Context (12) -
Rake
:: GemPackageTask (12) -
Rake
:: PackageTask (12) -
Rake
:: RDocTask (12) - TracePoint (12)
-
WIN32OLE
_ TYPE (12) -
Win32
:: Registry :: PredefinedKey (24)
モジュール
- Kernel (36)
-
Rake
:: TaskManager (12)
キーワード
- class (12)
-
class
_ exec (12) -
class
_ variable _ defined? (12) - close (12)
-
const
_ defined? (12) -
convertible
_ int (24) -
create
_ header (12) - deconstruct (3)
-
deconstruct
_ keys (3) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) -
define
_ task (12) -
defined
_ class (12) -
defined
_ in? (12) -
destination
_ encoding (12) -
destination
_ encoding _ name (12) -
error
_ char (12) - inspect (3)
-
instance
_ variable _ defined? (12) - lambda? (12)
-
local
_ variable _ defined? (12) - members (3)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ undefined (12) -
module
_ exec (12) - parameters (12)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) -
singleton
_ method _ undefined (12) -
source
_ encoding (12) -
source
_ encoding _ name (12) -
to
_ h (6) -
to
_ s (3)
検索結果
先頭5件
-
Rake
:: GemPackageTask # define (21102.0) -
タスクを定義します。
...タスクを定義します。
GemPackageTask.new にブロックが与えられている場合に、自動的に呼び出されます。... -
Rake
:: PackageTask # define -> self (21102.0) -
タスクを定義します。
タスクを定義します。
@raise RuntimeError バージョン情報をセットしていない場合に発生します。
初期化時に :noversion が指定されている場合は発生しません。 -
Rake
:: RDocTask # define -> self (21102.0) -
タスクを定義します。
タスクを定義します。 -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (15217.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding -> Encoding (15117.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...ーディングを Encoding
オブジェクトで返します。
変換が多段階になされる場合は元の文字列のものではない
エンコーディングが返される場合があることに注意してください。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (15101.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (15101.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding... -
TracePoint
# defined _ class -> Class | module (12355.0) -
メソッドを定義したクラスかモジュールを返します。
...ジュールを返します。
//emlist[例][ruby]{
class C; def foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => C
end.enable do
C.new.foo
end
//}
メソッドがモジュールで定義されていた場合も(include に関係なく)モジュー
ルを返します......foo; end; end
class C; include M; end;
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => M
end.enable do
C.new.foo
end
//}
[注意] 特異メソッドを実行した場合は TracePoint#defined_class は特異クラ
スを返します。また、Kernel.#set_trace_func の 6 番目......はなく元のクラスを返します。
//emlist[例][ruby]{
class C; def self.foo; end; end
trace = TracePoint.new(:call) do |tp|
p tp.defined_class # => #<Class:C>
end.enable do
C.foo
end
//}
Kernel.#set_trace_func と TracePoint の上記の差分に注意して
ください。
@see 508... -
Module
# protected _ method _ defined?(name , inherit=true) -> bool (12249.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。
...おり、
しかもその可視性が protected であるときに true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定義......method_defined?, Module#public_method_defined?, Module#private_method_defined?
//emlist[例][ruby]{
module A
def method1() end
end
class B
protected
def method2() end
end
class C < B
include A
def method3() end
end
A.method_defined? :method1 #=> true
C.protected_met......hod_defined? "method1" #=> false
C.protected_method_defined? "method2" #=> true
C.protected_method_defined? "method2", true #=> true
C.protected_method_defined? "method2", false #=> false
C.method_defined? "method2" #=> true
//}...