るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
10件ヒット [1-10件を表示] (0.074秒)

別のキーワード

  1. irb/input-method gets
  2. irb/input-method new
  3. _builtin define_method
  4. irb/input-method encoding
  5. irb/input-method readable_atfer_eof?

ライブラリ

キーワード

検索結果

Method#parameters -> [object] (117481.0)

Method オブジェクトの引数の情報を返します。

Method オブジェクトの引数の情報を返します。

Method オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、
各配列の要素は引数の種類に応じた以下のような Symbol と、仮引数の名前を表す Symbol の 2 要素です。
組み込みのメソッドでは、仮引数の名前が取れません。

: :req
必須の引数
: :opt
デフォルト値が指定されたオプショナルな引数
: :rest
* で指定された残りすべての引数
: :keyreq
必須のキーワード引数
: :key
デフォルト値が指定されたオプショナルなキーワード引数
: :keyre...

UnboundMethod#parameters -> [object] (63397.0)

UnboundMethod オブジェクトの引数の情報を返します。

UnboundMethod オブジェクトの引数の情報を返します。

詳しくは Method#parameters を参照してください。



@see Proc#parameters, Method#parameters

Proc#parameters -> [object] (54379.0)

Proc オブジェクトの引数の情報を返します。

Proc オブジェクトの引数の情報を返します。

Proc オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、
各配列の要素は引数の種類に対応した以下のような Symbol と、引数名を表す Symbol の 2 要素です。

: :req
必須の引数
: :opt
デフォルト値が指定されたオプショナルな引数
: :rest
* で指定された残りすべての引数
: :keyreq
必須のキーワード引数
: :key
デフォルト値が指定されたオプショナルなキーワード引数
: :keyrest
** で指定された残りのキーワード引数
: :block...

XMLRPC::Client#call(method, *args) (565.0)

Invokes the method named method with the parameters given by args on the XML-RPC server. The parameter method is converted into a String and should be a valid XML-RPC method-name. Each parameter of args must be of one of the following types, where Hash, Struct and Array can contain any of these listed ((:types:)): * Fixnum, Bignum * TrueClass, FalseClass (true, false) * String, Symbol * Float * Hash, Struct * Array * Date, Time, XMLRPC::DateTime * XMLRPC::Base64 * A Ruby object which class includes XMLRPC::Marshallable (only if Config::ENABLE_MARSHALLABLE is true). That object is converted into a hash, with one additional key/value pair "___class___" which contains the class name for restoring later that object.

Invokes the method named method with the parameters given by
args on the XML-RPC server.
The parameter method is converted into a String and should
be a valid XML-RPC method-name.
Each parameter of args must be of one of the following types,
where Hash, Struct and Array can contain any of these lis...

XMLRPC::Client#multicall2(*methods) (352.0)

Same as XMLRPC::Client#multicall, but returns like XMLRPC::Client#call2 two parameters instead of raising an XMLRPC::FaultException.

Same as XMLRPC::Client#multicall, but returns like XMLRPC::Client#call2 two parameters
instead of raising an XMLRPC::FaultException.

絞り込み条件を変える

XMLRPC::BasicServer#add_handler(name, signature=nil, help=nil) { aBlock } (259.0)

Adds aBlock to the list of handlers, with name as the name of the method. Parameters signature and help are used by the Introspection method if specified, where signature is either an Array containing strings each representing a type of it's signature (the first is the return value) or an Array of Arrays if the method has multiple signatures. Value type-names are "int, boolean, double, string, dateTime.iso8601, base64, array, struct".

Adds aBlock to the list of handlers, with name as the name of the method.
Parameters signature and help are used by the Introspection method if specified,
where signature is either an Array containing strings each representing a type of it's
signature (the first is the return value) or an Array of ...

XMLRPC::BasicServer#add_handler(prefix, obj) (169.0)

This is the second form of XMLRPC::BasicServer#add_handler. To add an object write: server.add_handler("michael", MyHandlerClass.new) All public methods of MyHandlerClass are accessible to the XML-RPC clients by (('michael."name of method"')). This is where the class_delim in XMLRPC::BasicServer.new has it's role, a XML-RPC method-name is defined by prefix + class_delim + (('"name of method"')).

This is the second form of XMLRPC::BasicServer#add_handler.
To add an object write:
server.add_handler("michael", MyHandlerClass.new)
All public methods of MyHandlerClass are accessible to
the XML-RPC clients by (('michael."name of method"')). This is
where the class_delim in XMLRPC::BasicServer...

XMLRPC::BasicServer#set_default_handler(&handler) (166.0)

Sets handler as the default-handler, which is called when no handler for a method-name is found. handler is a code-block. The default-handler is called with the (XML-RPC) method-name as first argument, and the other arguments are the parameters given by the client-call.

Sets handler as the default-handler, which is called when
no handler for a method-name is found. handler is a code-block.
The default-handler is called with the (XML-RPC) method-name as first argument, and
the other arguments are the parameters given by the client-call.

If no block is specified the...

XMLRPC::BasicServer#set_service_hook(&handler) (40.0)

A service-hook is called for each service request (RPC). You can use a service-hook for example to wrap existing methods and catch exceptions of them or convert values to values recognized by XMLRPC. You can disable it by passing nil as parameter handler .

A service-hook is called for each service request (RPC).
You can use a service-hook for example to wrap existing methods and catch exceptions of them or
convert values to values recognized by XMLRPC. You can disable it by passing nil as parameter
handler .

The service-hook is called with a Proc obj...

XMLRPC::BasicServer#add_handler(interface, obj) (34.0)

This is the third form of XMLRPC::BasicServer#add_handler.

This is the third form of XMLRPC::BasicServer#add_handler.

Use XMLRPC::interface to generate an ServiceInterface object, which
represents an interface (with signature and help text) for a handler class.

Parameter interface must be of type XMLRPC::ServiceInterface.
Adds all methods of obj which are...

絞り込み条件を変える