2626件ヒット
[1-100件を表示]
(0.181秒)
ライブラリ
- ビルトイン (1226)
-
cgi
/ core (33) -
cgi
/ html (88) - delegate (11)
- erb (33)
- forwardable (66)
-
irb
/ cmd / help (11) -
irb
/ context (11) -
irb
/ extend-command (11) -
irb
/ input-method (165) -
irb
/ output-method (33) - json (143)
-
minitest
/ spec (1) -
minitest
/ unit (2) -
net
/ http (22) -
net
/ imap (22) - openssl (110)
- rake (11)
-
rdoc
/ context (88) -
rdoc
/ stats (22) -
rdoc
/ top _ level (11) - rubygems (11)
-
webrick
/ httprequest (11) -
webrick
/ httpresponse (22) -
webrick
/ httpservlet / abstract (11) - win32ole (451)
クラス
- Array (9)
- BasicObject (66)
- CGI (22)
- Delegator (11)
- ERB (33)
- Enumerator (44)
-
Enumerator
:: Lazy (44) - Exception (11)
-
IRB
:: Context (11) -
IRB
:: ExtendCommand :: Help (11) -
IRB
:: FileInputMethod (22) -
IRB
:: InputMethod (33) -
IRB
:: OutputMethod (22) -
IRB
:: ReadlineInputMethod (55) -
IRB
:: StdioInputMethod (55) -
IRB
:: StdioOutputMethod (11) -
JSON
:: State (22) - Method (120)
-
MiniTest
:: Unit (1) - Module (332)
- NameError (22)
-
Net
:: HTTPGenericRequest (11) -
Net
:: IMAP (22) - NoMethodError (19)
- Object (199)
-
OpenSSL
:: Engine (11) -
OpenSSL
:: SSL :: SSLContext (88) -
OpenSSL
:: X509 :: Store (11) - Proc (24)
-
RDoc
:: Context (88) -
RDoc
:: Stats (22) -
RDoc
:: TopLevel (11) - Refinement (3)
- Regexp (22)
-
RubyVM
:: InstructionSequence (66) - String (55)
- Thread (11)
- TracePoint (28)
- UnboundMethod (163)
-
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (22) -
WEBrick
:: HTTPServlet :: AbstractServlet (11) - WIN32OLE (121)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (198) -
WIN32OLE
_ PARAM (99) -
WIN32OLE
_ TYPE (22)
モジュール
-
CGI
:: HtmlExtension (88) -
CGI
:: QueryExtension (11) - Forwardable (22)
-
Gem
:: QuickLoader (11) -
IRB
:: ExtendCommandBundle (11) -
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (11) - SingleForwardable (44)
キーワード
- == (11)
- [] (22)
-
_ getproperty (11) -
_ invoke (11) -
_ setproperty (11) -
absolute
_ path (11) -
add
_ method (11) -
add
_ response _ handler (22) -
add
_ to (11) -
alias
_ method (11) - args (11)
- arity (22)
-
assert
_ respond _ to (1) - backtrace (11)
-
base
_ label (11) - bind (11)
-
bind
_ call (10) -
callee
_ id (11) -
client
_ cert _ cb= (11) - clone (22)
-
def
_ class (11) -
def
_ delegator (11) -
def
_ delegators (11) -
def
_ instance _ delegator (11) -
def
_ instance _ delegators (11) -
def
_ method (11) -
def
_ module (11) -
def
_ single _ delegator (11) -
def
_ single _ delegators (11) - default (11)
-
default
_ event _ sources (11) -
define
_ method (22) -
define
_ singleton _ method (22) - dig (9)
- dispid (11)
- each (44)
-
each
_ method (11) - encode (33)
- encoding (33)
-
enum
_ for (44) - eof? (22)
- eql? (11)
- event? (11)
-
event
_ interface (11) - execute (11)
-
file
_ name (11) -
find
_ local _ symbol (22) -
find
_ symbol (11) -
first
_ lineno (11) - form (44)
- generate (11)
- gets (44)
- handler= (11)
- hash (22)
- header (11)
- helpcontext (11)
- helpfile (11)
- helpstring (11)
-
import
_ methods (3) -
initialize
_ methods _ etc (11) - input? (11)
- inspect (22)
-
install
_ alias _ method (11) -
instance
_ eval (22) -
instance
_ method (11) -
instance
_ methods (11) - invkind (11)
-
invoke
_ kind (11) - io (11)
- label (11)
- lambda? (11)
- line (22)
- match (22)
-
method
_ added (11) -
method
_ defined? (11) -
method
_ id (11) -
method
_ list (11) -
method
_ missing (44) -
method
_ removed (11) -
method
_ undefined (11) - methods (11)
-
module
_ function (19) -
multipart
_ form (44) -
must
_ respond _ to (1) - name (55)
-
num
_ methods (11) -
num
_ methods= (11) -
offset
_ vtbl (11) -
ole
_ activex _ initialize (11) -
ole
_ func _ methods (11) -
ole
_ get _ methods (11) -
ole
_ method (11) -
ole
_ method _ help (11) -
ole
_ methods (22) -
ole
_ put _ methods (11) -
ole
_ type (11) -
ole
_ type _ detail (11) - optional? (11)
-
original
_ name (22) - out (11)
- output? (11)
- owner (22)
- parameters (19)
- params (11)
- path (11)
- print (22)
- printn (11)
- private (23)
-
private
_ call? (8) -
private
_ class _ method (15) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) - protected (23)
-
protected
_ instance _ methods (11) -
protected
_ method _ defined? (11) -
protected
_ methods (11) - public (23)
-
public
_ class _ method (15) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ method _ defined? (11) -
public
_ methods (11) - puke (1)
-
rake
_ extension (11) -
readable
_ atfer _ eof? (33) -
remove
_ method (11) -
renegotiation
_ cb= (11) -
request
_ method (33) -
request
_ method= (11) -
respond
_ to? (11) -
respond
_ to _ missing? (11) -
return
_ type (11) -
return
_ type _ detail (11) -
return
_ vtype (11) - retval? (11)
-
ruby2
_ keywords (5) - send (22)
-
servername
_ cb= (11) - service (11)
-
session
_ get _ cb= (11) -
session
_ new _ cb= (11) -
session
_ remove _ cb= (11) -
set
_ default (11) -
set
_ visibility _ for (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) -
size
_ opt _ params (11) -
size
_ params (11) -
source
_ location (33) -
super
_ method (20) -
tmp
_ dh _ callback= (11) -
to
_ a (11) -
to
_ enum (44) -
to
_ json (99) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ s (66) -
to
_ str (11) - unbind (11)
-
undef
_ method (11) -
verify
_ callback= (22) - visible? (11)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # method -> String (24214.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"
//}... -
Method
# original _ name -> Symbol (21207.0) -
オリジナルのメソッド名を返します。
...オリジナルのメソッド名を返します。
//emlist[例][ruby]{
class C
def foo; end
alias bar foo
end
C.new.method(:bar).original_name # => :foo
//}
@see UnboundMethod#original_name... -
Object
# method(name) -> Method (18349.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... -
IRB
:: ExtendCommandBundle # install _ alias _ method(to , from , override = NO _ OVERRIDE) (18202.0) -
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
...のメソッドを
上書きするかどうかを
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONLY、
IRB::ExtendCommandBundle::OVERRIDE_ALL のいずれか
で指定します。... -
Method
# super _ method -> Method | nil (15379.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
...るメソッドを 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"
//}... -
Method
# unbind -> UnboundMethod (15331.0) -
self のレシーバとの関連を取り除いた UnboundMethod オブ ジェクトを生成して返します。
...除いた UnboundMethod オブ
ジェクトを生成して返します。
//emlist[例][ruby]{
class Foo
def foo
"foo"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
unbound_method = m.unbind # => #<UnboundMethod: Foo#foo>
unbound_method.bind(Foo.new) # => #<Method: Foo#foo>
//}... -
Method
# inspect -> String (15239.0) -
self を読みやすい文字列として返します。
...します。
以下の形式の文字列を返します。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジ......ール名、
method は、メソッド名を表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include 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> (形式2)... -
Method
# clone -> Method (15236.0) -
自身を複製した Method オブジェクトを作成して返します。
...自身を複製した Method オブジェクトを作成して返します。
//emlist[例][ruby]{
class Foo
def foo
"foo"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.call # => "foo"
m.clone # => #<Method: Foo#foo>
m.clone.call # => "foo"
//}... -
Method
# inspect -> String (15233.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
# owner -> Class | Module (15125.0) -
このメソッドが定義されている class か module を返します。
...定義されている class か module を返します。
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.owner # => Foo
m = Foo.new.method(:puts) # => #<Method: Foo(Kernel)#puts>
m.owner # => Kernel
//}...