263件ヒット
[1-100件を表示]
(0.229秒)
ライブラリ
- ビルトイン (186)
- mkmf (11)
- rake (22)
-
rake
/ packagetask (11) -
rake
/ rdoctask (11) -
rake
/ testtask (11) - win32ole (11)
クラス
- BasicObject (11)
- Data (10)
-
Encoding
:: UndefinedConversionError (33) - Module (88)
- Object (33)
-
Rake
:: PackageTask (11) -
Rake
:: RDocTask (11) -
Rake
:: TestTask (11) - TracePoint (11)
-
WIN32OLE
_ TYPE (11)
モジュール
- Kernel (22)
-
Rake
:: TaskManager (11)
キーワード
-
const
_ defined? (11) -
create
_ header (11) -
deconstruct
_ keys (2) -
default
_ event _ sources (11) -
define
_ method (22) -
define
_ singleton _ method (22) -
define
_ task (11) -
defined
_ class (11) -
destination
_ encoding (11) -
destination
_ encoding _ name (11) -
error
_ char (11) - file (11)
- hash (2)
- inspect (2)
-
instance
_ variable _ defined? (11) -
method
_ defined? (11) -
method
_ undefined (11) -
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) -
singleton
_ method _ undefined (11) -
to
_ s (2) - with (2)
検索結果
先頭5件
-
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (33601.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (33601.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Rake
:: PackageTask # define -> self (27302.0) -
タスクを定義します。
...タスクを定義します。
@raise RuntimeError バージョン情報をセットしていない場合に発生します。
初期化時に :noversion が指定されている場合は発生しません。... -
Rake
:: RDocTask # define -> self (27302.0) -
タスクを定義します。
タスクを定義します。 -
Rake
:: TestTask # define -> self (27302.0) -
タスクを定義します。
タスクを定義します。 -
Module
# protected _ method _ defined?(name , inherit=true) -> bool (24601.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。
...ており、
しかもその可視性が protected であるときに true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定......ethod_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_meth......od_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
//}... -
Object
# define _ singleton _ method(symbol) { . . . } -> Symbol (24539.0) -
self に特異メソッド name を定義します。
...m symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
//emlist[][ruby]{
class A
class <<......self
def class_name
to_s
end
end
end
A.define_singleton_method(:who_am_i) do
"I am: #{class_name}"
end
A.who_am_i # ==> "I am: A"
guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello #=> "Bob: Hello there!"
//}... -
Object
# define _ singleton _ method(symbol , method) -> Symbol (24539.0) -
self に特異メソッド name を定義します。
...m symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Symbol を返します。
//emlist[][ruby]{
class A
class <<......self
def class_name
to_s
end
end
end
A.define_singleton_method(:who_am_i) do
"I am: #{class_name}"
end
A.who_am_i # ==> "I am: A"
guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello #=> "Bob: Hello there!"
//}... -
Module
# protected _ method _ defined?(name) -> bool (24501.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。
...が protected であるときに true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@see Module#method_defined?, Module#public_method_defined?, Module#private_method_defined?
//emlist[例][ruby]{
module A
def method1() end......otected
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.method_defined? "method2" #=> t... -
Object
# instance _ variable _ defined?(var) -> bool (24501.0) -
インスタンス変数 var が定義されていたら真を返します。
...list[][ruby]{
class Fred
def initialize(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#instance_variables... -
Rake
:: TaskManager # define _ task(task _ class , *args) { . . . } -> Rake :: Task (21620.0) -
タスクを定義します。
...aram task_class タスククラスを指定します。
@param args タスクに渡すパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.define_task(Rake::Task, :t) # => <Rake::Task t =>...