2041件ヒット
[1-100件を表示]
(0.135秒)
別のキーワード
ライブラリ
- ビルトイン (1214)
-
cgi
/ core (24) -
cgi
/ html (72) - delegate (24)
- erb (12)
-
irb
/ cmd / help (12) -
irb
/ context (12) -
irb
/ input-method (168) -
irb
/ output-method (60) -
minitest
/ spec (1) -
minitest
/ unit (2) -
net
/ http (24) -
net
/ imap (24) - openssl (12)
- pp (12)
- psych (8)
-
rdoc
/ top _ level (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (12) - win32ole (312)
クラス
- BasicObject (36)
- CGI (24)
- Delegator (24)
- ERB (12)
- Enumerator (48)
-
Enumerator
:: Lazy (48) - Exception (12)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: FileInputMethod (24) -
IRB
:: InputMethod (24) -
IRB
:: OutputMethod (48) -
IRB
:: ReadlineInputMethod (60) -
IRB
:: StdioInputMethod (60) -
IRB
:: StdioOutputMethod (12) - Method (143)
-
MiniTest
:: Unit (1) - Module (380)
- NameError (24)
-
Net
:: HTTPGenericRequest (12) -
Net
:: IMAP (24) - NoMethodError (21)
- Object (181)
-
OpenSSL
:: Engine (12) - PP (12)
- Proc (56)
-
RDoc
:: TopLevel (12) - Refinement (4)
- Regexp (24)
-
RubyVM
:: InstructionSequence (36) - String (60)
- Thread (12)
- TracePoint (31)
- UnboundMethod (107)
-
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) - WIN32OLE (60)
-
WIN32OLE
_ METHOD (120) -
WIN32OLE
_ PARAM (108) -
WIN32OLE
_ TYPE (24)
モジュール
-
CGI
:: HtmlExtension (72) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (12)
キーワード
- << (14)
- == (24)
- >> (14)
- [] (12)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
absolute
_ path (12) -
add
_ response _ handler (24) - args (12)
- arity (24)
-
assert
_ respond _ to (1) - backtrace (12)
- bind (12)
-
callee
_ id (12) -
class
_ exec (12) - curry (22)
-
def
_ class (12) - default (12)
-
default
_ event _ sources (12) -
define
_ method (24) - dispid (12)
- each (48)
- encode (36)
- encoding (36)
-
enum
_ for (48) - eof? (24)
- eql? (24)
- execute (12)
-
file
_ name (12) -
find
_ local _ symbol (12) -
first
_ lineno (12) - form (24)
- gets (36)
- hash (24)
- header (12)
- helpcontext (12)
- helpfile (12)
- helpstring (12)
-
import
_ methods (4) - input? (12)
- inspect (24)
-
instance
_ eval (24) -
instance
_ methods (12) - io (12)
- lambda? (12)
- line (24)
- match (24)
-
method
_ id (12) -
method
_ missing (12) - methods (12)
-
module
_ exec (12) -
module
_ function (36) -
multipart
_ form (48) -
must
_ respond _ to (1) - name (24)
-
ole
_ method _ help (12) -
ole
_ methods (12) -
ole
_ put _ methods (12) -
ole
_ type (12) -
ole
_ type _ detail (12) - optional? (12)
- out (12)
- output? (12)
- parameters (43)
- params (12)
- path (12)
- pp (12)
- ppx (12)
- print (12)
- printn (12)
- private (48)
-
private
_ call? (9) -
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 (48)
-
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)
-
readable
_ atfer _ eof? (36) -
request
_ method (24) -
respond
_ to? (12) -
respond
_ to _ missing? (12) -
return
_ type (12) -
return
_ type _ detail (12) -
return
_ vtype (12) - retval? (12)
-
ruby2
_ keywords (6) - send (24)
- seplist (12)
- service (12)
-
set
_ default (12) -
singleton
_ methods (12) -
size
_ opt _ params (12) -
size
_ params (12) -
source
_ location (12) -
super
_ method (22) -
to
_ enum (48) -
to
_ proc (12) -
to
_ s (60) -
to
_ str (12) -
yaml
_ as (4)
検索結果
先頭5件
-
Method
# super _ method -> Method | nil (21479.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
...uper を実行した際に実行されるメソッドを 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 (21214.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 (21208.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 (18367.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... -
UnboundMethod
# super _ method -> UnboundMethod | nil (15414.0) -
self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ クトにして返します。
...self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ
クトにして返します。
@see Method#super_method... -
Method
# inspect -> String (15375.0) -
self を読みやすい文字列として返します。
...します。
以下の形式の文字列を返します。
#<Method: klass1(klass2)#method> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュ......モジュール名、
method は、メソッド名を表します。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo>
p Bar.new.method(:bar) # => #<Method: Bar#bar>
//}
klass......が同じ場合は以下の形式になります。
#<Method: klass1#method> (形式2)
特異メソッドに対しては、
#<Method: obj.method> (形式3)
#<Method: klass1(klass2).method> (形式4)
という形式の文字列......します。
以下の形式の文字列を返します。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジ......klass2 は、実際にそのメソッドを定義しているクラス/モジュール名、
method は、メソッド名を表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//em......Foo
def bar(a, b)
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}
klass1 と klass2 が同じ場合は以下の形式になります。
#<Method: klass1#method() foo.rb:2> (... -
Method
# to _ proc -> Proc (15313.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"
//}... -
Method
# parameters -> [object] (15241.0) -
Method オブジェクトの引数の情報を返します。
...Method オブジェクトの引数の情報を返します。
Method オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、
各配列の要素は引数の種類に応じた以下のような Symbol と、仮引数の名......前を表す Symbol の 2 要素です。
組み込みのメソッドでは、仮引数の名前が取れません。
: :req
必須の引数
: :opt
デフォルト値が指定されたオプショナルな引数
: :rest
* で指定された残りすべての引数
: :keyreq
必須のキーワ......t[例][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......st[例][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... -
Object
# public _ method(name) -> Method (12467.0) -
オブジェクトの public メソッド name をオブジェクト化した Method オブジェクトを返します。
...クトの public メソッド name をオブジェクト化した
Method オブジェクトを返します。
@param name メソッド名を Symbol または String で指定します。
@raise NameError 定義されていないメソッド名や、
protected メソッド名、 private メ......ソッド名を引数として与えると発生します。
//emlist[][ruby]{
1.public_method(:to_int) #=> #<Method: Integer#to_int>
1.public_method(:p) # method `p' for class `Integer' is private (NameError)
//}
@see Object#method,Object#public_send,Module#public_instance_method...