るりまサーチ

最速Rubyリファレンスマニュアル検索!
6220件ヒット [1-100件を表示] (0.201秒)
トップページ > クエリ:e[x] > クエリ:method[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

Net::HTTPGenericRequest#method -> String (27213.0)

リクエストの HTTP メソッドを文字列で返します。

...リクエストの HTTP メソッドを文字列で返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}...

Net::HTTPHeader#method -> String (27207.0)

リクエストの HTTP メソッドを文字列で返します。

...リクエストの HTTP メソッドを文字列で返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}...

Object#method(name) -> Method (24448.0)

オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返します。

...name をオブジェクト化した
Method
オブジェクトを返します。

@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。

//emlist[][ruby]{
me = -365.method(:ab...
...s)
p me #=> #<Method: Integer#abs>
p me.call #=> 365
//}

@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#singleton_method...

Method#super_method -> Method | nil (24378.0)

self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。

...self 内で super を実行した際に実行されるメソッドを Method オブジェ
クトにして返します。

@see UnboundMethod#super_method

//emlist[例][ruby]{
class Super
def foo
"superclass method"
e
nd
e
nd

class Sub < Super
def foo
"subclass method"
e
nd
e
nd

m = S...
...ub.new.method(:foo) # => #<Method: Sub#foo>
m.call # => "subclass method"
m.super_method # => #<Method: Super#foo>
m.super_method.call # => "superclass method"
//}...

VALUE rb_class_private_instance_methods(int argc, VALUE *argv, VALUE mod) (18400.0)

Module#private_instance_methods の実体。 モジュール mod に定義されている private メソッド名の リストを文字列の配列で返します。

...Module#private_instance_methods の実体。
モジュール mod に定義されている private メソッド名の
リストを文字列の配列で返します。...

絞り込み条件を変える

VALUE rb_obj_singleton_methods(int argc, VALUE *argv, VALUE obj) (18400.0)

Object#singleton_methods の実体。 オブジェクト obj に定義されている特異メソッド名のリストを 文字列の配列で返す。

...Object#singleton_methods の実体。
オブジェクト obj に定義されている特異メソッド名のリストを
文字列の配列で返す。...

UnboundMethod#super_method -> UnboundMethod | nil (18313.0)

self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ クトにして返します。

...self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ
クトにして返します。


@see Method#super_method...

ERB::DefMethod.#def_erb_method(methodname, erb) -> nil (18307.0)

self に erb のスクリプトをメソッドとして定義します。

...self に erb のスクリプトをメソッドとして定義します。

メソッド名は methodname で指定します。
e
rb が文字列の時、そのファイルを読み込み ERB で変換したのち、メソッドとして定義します。

@param methodname メソッド名

@param er...
...b ERBインスタンスもしくはERBソースファイル名

例:

require 'erb'
class Writer
e
xtend ERB::DefMethod
def_erb_method('to_html', 'writer.erb')
...
e
nd
...
puts writer.to_html...

static NODE * rb_get_method_body(VALUE *klassp, ID *idp, int *noexp) (18300.0)

クラス klass から id という名前のメソッドエントリを検索する。 見付かったらその本体である構文木を返す。見付からなければ NULL を返す。

クラス klass から id という名前のメソッドエントリを検索する。
見付かったらその本体である構文木を返す。見付からなければ
NULL を返す。

検索結果をキャッシュする。
<< 1 2 3 ... > >>