501件ヒット
[201-300件を表示]
(0.074秒)
別のキーワード
ライブラリ
- ビルトイン (333)
- mkmf (36)
- rake (36)
-
rake
/ gempackagetask (12) -
rake
/ packagetask (12) -
rake
/ rdoctask (12) -
rake
/ testtask (12) -
rdoc
/ context (12) -
win32
/ registry (24) - win32ole (12)
クラス
- BasicObject (12)
- Binding (12)
- Data (33)
-
Encoding
:: UndefinedConversionError (60) - Method (12)
- Module (144)
- Object (36)
- Proc (12)
-
RDoc
:: Context (12) -
Rake
:: GemPackageTask (12) -
Rake
:: PackageTask (12) -
Rake
:: RDocTask (12) -
Rake
:: TestTask (12) - TracePoint (12)
-
WIN32OLE
_ TYPE (12) -
Win32
:: Registry :: PredefinedKey (24)
モジュール
- Kernel (60)
-
Rake
:: TaskManager (12)
キーワード
- == (3)
- 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) - eql? (3)
-
error
_ char (12) - file (12)
- hash (3)
- 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) - task (12)
-
to
_ h (6) -
to
_ s (3) - with (3)
検索結果
先頭5件
-
Module
# protected _ method _ defined?(name , inherit=true) -> bool (6101.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。
...ます。
@see Module#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_method_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
//}... -
Module
# public _ method _ defined?(name , inherit=true) -> bool (6101.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が public であるときに true を返します。 そうでなければ false を返します。
...defined?, Module#private_method_defined?, Module#protected_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.public_method_define......d? "method1" #=> true
C.public_method_defined? "method1", true #=> true
C.public_method_defined? "method1", false #=> true
C.public_method_defined? "method2" #=> false
C.method_defined? "method2" #=> true
//}... -
Object
# instance _ variable _ defined?(var) -> bool (6101.0) -
インスタンス変数 var が定義されていたら真を返します。
...alize(p1, p2)
@a, @b = p1, p2
end
end
fred = Fred.new('cat', 99)
p fred.instance_variable_defined?(:@a) #=> true
p fred.instance_variable_defined?("@b") #=> true
p fred.instance_variable_defined?("@c") #=> false
//}
@see Object#instance_variable_get,Object#instance_variable_set,Object#... -
RDoc
:: Context # defined _ in?(file) (6101.0) -
Return true if at least part of this thing was defined in file
...Return true if at least part of this thing was defined in file... -
TracePoint
# defined _ class -> Class | module (6101.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 に関係なく)モジュ......nt#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_... -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (3001.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (3001.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # error _ char -> String (3001.0) -
エラーを発生させた1文字を文字列で返します。
...エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//}... -
Encoding
:: UndefinedConversionError # source _ encoding -> Encoding (3001.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...ーディングを Encoding
オブジェクトで返します。
変換が多段階になされる場合は元の文字列のものではない
エンコーディングが返される場合があることに注意してください。
@see Encoding::UndefinedConversionError#destination_encoding...