るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

キーワード

検索結果

<< 1 2 3 ... > >>

Method#super_method -> Method | nil (21478.0)

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

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

@see UnboundMethod#super_method

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

class Sub < Super
def foo
"subclass method"
end
end

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

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

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

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

//emlist[例][ruby]{
r
equire 'net/http'

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

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

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

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

//emlist[例][ruby]{
r
equire 'net/http'

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

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

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

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

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

@param methodname メソッド名

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

例:

r
equire 'erb'
class Writer
extend ERB::DefMethod
def_erb_method('to_html', 'writer.erb')
...
end
...
puts writer.to_html...

irb/input-method (18000.0)

irb が入力を扱うためのサブライブラリです。

...irb が入力を扱うためのサブライブラリです。

ユーザが直接使用するものではありません。...

絞り込み条件を変える

irb/output-method (18000.0)

irb が出力を扱うためのサブライブラリです。

...irb が出力を扱うためのサブライブラリです。...

IRB::ExtendCommandBundle.irb_original_method_name(method_name) -> String (15430.0)

method_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ ラリ内部で使用します。

...
method
_name で指定したメソッドの irb 中でのエイリアスを返します。ライブ
ラリ内部で使用します。

@param method_name メソッド名を Symbol か文字列で指定します。

@see IRB::ExtendCommandBundle#install_alias_method...

UnboundMethod#super_method -> UnboundMethod | nil (15413.0)

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

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


@see Method#super_method...

Rake::FileList::ARRAY_METHODS -> Array (15400.0)

Array に定義されているメソッドのリストです。

...Array に定義されているメソッドのリストです。...

Method#to_proc -> Proc (15312.0)

self を call する Proc オブジェクトを生成して返します。

...self を call する Proc オブジェクトを生成して返します。

//emlist[例][ruby]{
class Foo
def foo
"foo"
end
end

m = Foo.new.method(:foo) # => #<Method: Foo#foo>
pr = m.to_proc # => #<Proc:0x007f874d026008 (lambda)>
pr.call # => "foo"
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>