1853件ヒット
[1-100件を表示]
(0.098秒)
ライブラリ
- ビルトイン (1122)
-
cgi
/ core (24) -
cgi
/ html (96) - delegate (24)
- erb (24)
-
irb
/ cmd / help (12) -
irb
/ context (12) -
irb
/ extend-command (12) -
irb
/ input-method (180) -
irb
/ output-method (72) - json (24)
-
minitest
/ spec (1) -
minitest
/ unit (2) -
net
/ http (12) - openssl (12)
- psych (8)
- rake (12)
-
rdoc
/ stats (24) -
rdoc
/ top _ level (12) - rubygems (12)
-
webrick
/ httprequest (12) -
webrick
/ httpresponse (24) -
webrick
/ httpservlet / abstract (12) - win32ole (108)
クラス
- BasicObject (12)
- CGI (12)
- Delegator (24)
- ERB (24)
- Enumerator (48)
-
Enumerator
:: Lazy (48) -
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: FileInputMethod (24) -
IRB
:: InputMethod (36) -
IRB
:: OutputMethod (60) -
IRB
:: ReadlineInputMethod (60) -
IRB
:: StdioInputMethod (60) -
IRB
:: StdioOutputMethod (12) - Method (81)
-
MiniTest
:: Unit (1) - Module (500)
-
Net
:: HTTPGenericRequest (12) - Object (145)
-
OpenSSL
:: Engine (12) - Proc (18)
-
RDoc
:: Stats (24) -
RDoc
:: TopLevel (12) - Refinement (4)
-
RubyVM
:: InstructionSequence (72) - String (36)
- UnboundMethod (179)
-
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (24) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) - WIN32OLE (24)
-
WIN32OLE
_ METHOD (36) -
WIN32OLE
_ PARAM (36) -
WIN32OLE
_ TYPE (12)
モジュール
キーワード
- == (12)
-
absolute
_ path (12) -
alias
_ method (12) - arity (24)
-
assert
_ respond _ to (1) -
base
_ label (12) - bind (12)
-
bind
_ call (12) -
class
_ exec (12) - clone (12)
- curry (22)
-
def
_ class (12) -
def
_ module (12) - default (12)
-
default
_ event _ sources (12) -
define
_ method (24) - each (48)
- encode (36)
- encoding (36)
-
enum
_ for (48) - eof? (24)
- eql? (12)
- execute (12)
-
file
_ name (12) -
find
_ local _ symbol (12) -
first
_ lineno (12) - form (48)
- gets (48)
- hash (12)
-
import
_ methods (4) - input? (12)
- inspect (12)
-
install
_ alias _ method (12) -
instance
_ method (12) -
instance
_ methods (12) - io (12)
- label (12)
- line (24)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
-
module
_ exec (12) -
module
_ function (36) -
multipart
_ form (48) -
must
_ respond _ to (1) - name (12)
-
num
_ methods (12) -
num
_ methods= (12) -
ole
_ func _ methods (12) -
ole
_ put _ methods (12) -
original
_ name (12) - out (12)
- output? (12)
- owner (24)
- parameters (12)
- path (12)
- pp (12)
- ppx (12)
- print (24)
- printn (12)
- private (48)
-
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)
-
rake
_ extension (12) -
readable
_ atfer _ eof? (36) -
remove
_ method (12) -
request
_ method (36) -
request
_ method= (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) -
return
_ type (12) -
return
_ type _ detail (12) -
return
_ vtype (12) -
ruby2
_ keywords (18) - service (12)
-
set
_ default (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
source
_ location (36) -
super
_ method (22) -
to
_ a (12) -
to
_ enum (48) -
to
_ json (24) -
to
_ s (12) - unbind (12)
-
undef
_ method (12) -
yaml
_ as (4)
検索結果
先頭5件
-
Method
# super _ method -> Method | nil (21379.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
...super を実行した際に実行されるメソッドを 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 (21114.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"
//}... -
UnboundMethod
# super _ method -> UnboundMethod | nil (18314.0) -
self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ クトにして返します。
...self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ
クトにして返します。
@see Method#super_method... -
Method
# unbind -> UnboundMethod (15431.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>
/... -
CGI
:: QueryExtension # request _ method -> String (15218.0) -
ENV['REQUEST_METHOD'] を返します。
...ENV['REQUEST_METHOD'] を返します。... -
WEBrick
:: HTTPRequest # request _ method -> String (15202.0) -
クライアントのリクエストの HTTP メソッド(GET, POST,...)を文字列で返します。
クライアントのリクエストの HTTP メソッド(GET, POST,...)を文字列で返します。 -
Method
# source _ location -> [String , Integer] | nil (15119.0) -
ソースコードのファイル名と行番号を配列で返します。
...トが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
@see Proc#source_location
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end
# ----- end of /tmp/foo.rb ----
require '/tmp/foo'
m = Foo.new.method(:foo) # =>......#<Method: Foo#foo>
m.source_location # => ["/tmp/foo.rb", 2]
method(:puts).source_location # => nil
//}... -
Method
# curry -> Proc (15113.0) -
self を元にカリー化した Proc を返します。
...要があります。
//emlist[例][ruby]{
def foo(a,b,c)
[a, b, c]
end
proc = self.method(:foo).curry
proc2 = proc.call(1, 2) #=> #<Proc>
proc2.call(3) #=> [1,2,3]
def vararg(*args)
args
end
proc = self.method(:vararg).curry(4)
proc2 = proc.call(:x) #=> #<P......roc>
proc3 = proc2.call(:y, :z) #=> #<Proc>
proc3.call(:a) #=> [:x, :y, :z, :a]
//}
@see Proc#curry... -
Method
# curry(arity) -> Proc (15113.0) -
self を元にカリー化した Proc を返します。
...要があります。
//emlist[例][ruby]{
def foo(a,b,c)
[a, b, c]
end
proc = self.method(:foo).curry
proc2 = proc.call(1, 2) #=> #<Proc>
proc2.call(3) #=> [1,2,3]
def vararg(*args)
args
end
proc = self.method(:vararg).curry(4)
proc2 = proc.call(:x) #=> #<P......roc>
proc3 = proc2.call(:y, :z) #=> #<Proc>
proc3.call(:a) #=> [:x, :y, :z, :a]
//}
@see Proc#curry...