2016件ヒット
[1-100件を表示]
(0.162秒)
ライブラリ
- ビルトイン (1033)
-
cgi
/ core (24) -
cgi
/ html (96) - delegate (36)
- erb (36)
- forwardable (96)
-
irb
/ cmd / help (12) -
irb
/ extend-command (12) -
irb
/ input-method (24) -
irb
/ output-method (72) - json (108)
-
minitest
/ spec (1) -
minitest
/ unit (2) -
net
/ imap (24) - openssl (108)
- pp (12)
- psych (8)
- rake (12)
-
rdoc
/ context (36) -
rdoc
/ stats (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (12) - win32ole (228)
クラス
- Array (10)
- BasicObject (72)
- CGI (24)
- Delegator (36)
- ERB (36)
- Enumerator (48)
-
IRB
:: ExtendCommand :: Help (12) -
IRB
:: OutputMethod (60) -
IRB
:: ReadlineInputMethod (12) -
IRB
:: StdioInputMethod (12) -
IRB
:: StdioOutputMethod (12) - Method (116)
-
MiniTest
:: Unit (1) - Module (452)
-
Net
:: IMAP (24) - Object (217)
-
OpenSSL
:: SSL :: SSLContext (96) -
OpenSSL
:: X509 :: Store (12) - PP (12)
- Proc (12)
-
RDoc
:: Context (36) -
RDoc
:: Stats (12) - Regexp (24)
- String (36)
- Thread (12)
- TracePoint (7)
- UnboundMethod (48)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) - WIN32OLE (72)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (36) -
WIN32OLE
_ PARAM (108)
モジュール
-
CGI
:: HtmlExtension (96) - Forwardable (48)
-
IRB
:: ExtendCommandBundle (12) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
MiniTest
:: Assertions (1) - SingleForwardable (48)
キーワード
- << (7)
- == (24)
- === (8)
- >> (7)
- [] (24)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ method (12) -
add
_ response _ handler (24) -
add
_ to (12) -
alias
_ method (12) -
assert
_ respond _ to (1) - bind (12)
- call (24)
-
class
_ exec (12) -
client
_ cert _ cb= (12) - curry (22)
-
def
_ class (12) -
def
_ delegator (24) -
def
_ delegators (24) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ method (12) -
def
_ module (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) - default (12)
-
define
_ method (24) -
define
_ singleton _ method (24) - dig (10)
- each (48)
- encode (36)
-
enum
_ for (24) - eql? (24)
- execute (12)
- form (48)
- handler= (12)
- header (12)
- input? (12)
-
install
_ alias _ method (12) -
instance
_ eval (24) -
instance
_ method (12) -
instance
_ methods (12) - line (24)
- match (24)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ missing (36) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
-
module
_ exec (12) -
module
_ function (36) -
multipart
_ form (48) -
must
_ respond _ to (1) - name (12)
-
num
_ methods= (12) -
ole
_ method (12) -
ole
_ method _ help (12) -
ole
_ type (12) -
ole
_ type _ detail (12) - optional? (12)
- out (12)
- output? (12)
- parameters (43)
- params (12)
- pp (12)
- ppx (12)
- print (24)
- printn (12)
- private (48)
-
private
_ class _ method (24) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - protected (48)
-
protected
_ instance _ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (24) -
psych
_ yaml _ as (4) - public (12)
-
public
_ class _ method (24) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ methods (24) - puke (1)
- puts (12)
-
rake
_ extension (12) -
remove
_ method (12) -
renegotiation
_ cb= (12) -
request
_ method= (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - retval? (12)
- send (24)
- seplist (12)
-
servername
_ cb= (12) - service (12)
-
session
_ get _ cb= (12) -
session
_ new _ cb= (12) -
session
_ remove _ cb= (12) -
set
_ visibility _ for (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
size
_ opt _ params (12) -
size
_ params (12) -
tmp
_ dh _ callback= (12) -
to
_ enum (24) -
to
_ json (108) -
to
_ s (12) -
undef
_ method (12) -
verify
_ callback= (24) -
yaml
_ as (4)
検索結果
先頭5件
-
Object
# method(name) -> Method (24455.0) -
オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返します。
...した
Method オブジェクトを返します。
@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。
//emlist[][ruby]{
me = -365.method(:abs)
p me #=> #<Method: Integer#......abs>
p me.call #=> 365
//}
@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#singleton_method... -
Method
# parameters -> [object] (21241.0) -
Method オブジェクトの引数の情報を返します。
...Method オブジェクトの引数の情報を返します。
Method オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、
各配列の要素は引数の種類に応じた以下のような Symbol と、仮引数の名......須の引数
: :opt
デフォルト値が指定されたオプショナルな引数
: :rest
* で指定された残りすべての引数
: :keyreq
必須のキーワード引数
: :key
デフォルト値が指定されたオプショナルなキーワード引数
: :keyrest
** で指定され......list[例][ruby]{
m = Class.new{define_method(:m){|x, y=42, *other, k_x:, k_y: 42, **k_other, &b|}}.instance_method(:m)
m.parameters #=> x], [:opt, :y], [:rest, :other], [:keyreq, :k_x], [:key, :k_y], [:keyrest, :k_other], [:block, :b
File.method(:symlink).parameters #=> req
//}
@see Proc#parameters... -
Module
# protected _ method _ defined?(name , inherit=true) -> bool (18422.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
//}... -
Module
# protected _ instance _ methods(inherited _ too = true) -> [Symbol] (18407.0) -
そのモジュールで定義されている protected メソッド名 の一覧を配列で返します。
...そのモジュールで定義されている protected メソッド名
の一覧を配列で返します。
@param inherited_too false を指定するとそのモジュールで定義されているメソッドのみ返します。
@see Object#protected_methods, Module#instance_methods... -
Object
# protected _ methods(include _ inherited = true) -> [Symbol] (15407.0) -
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
...解できる protected メソッド名の一覧を返します。
@param include_inherited 偽となる値を指定すると自身のクラスのスーパークラスで定義されたメソッドを除きます。
@see Module#protected_instance_methods,Object#methods,Object#singleton_methods... -
Delegator
# protected _ methods(all = true) -> [Symbol] (15307.0) -
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
...そのオブジェクトが理解できる protected メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#protected_methods... -
WIN32OLE
_ METHOD # size _ opt _ params -> Integer | nil (15219.0) -
オプションパラメータ数を取得します。
...@return オプションパラメータ数を整数で返します。メソッドの詳細情報を取
得できない場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
puts method.s......ize_opt_params # => 5... -
UnboundMethod
# parameters -> [object] (15213.0) -
UnboundMethod オブジェクトの引数の情報を返します。
...UnboundMethod オブジェクトの引数の情報を返します。
詳しくは Method#parameters を参照してください。
@see Proc#parameters, Method#parameters... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (15113.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生......State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
tanaka = Person.new("ta......naka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}...