228件ヒット
[1-100件を表示]
(0.023秒)
ライブラリ
- ビルトイン (96)
-
cgi
/ core (12) - forwardable (24)
-
net
/ http (12) - pp (12)
- rubygems (12)
-
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (24) -
webrick
/ httpservlet / abstract (12)
クラス
- Method (12)
-
Net
:: HTTPGenericRequest (12) - PP (12)
-
RubyVM
:: InstructionSequence (72) - UnboundMethod (12)
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (24) -
WEBrick
:: HTTPServlet :: AbstractServlet (12)
モジュール
-
CGI
:: QueryExtension (12) - Forwardable (24)
-
Gem
:: QuickLoader (12)
キーワード
-
absolute
_ path (12) -
base
_ label (12) -
def
_ delegator (12) -
def
_ instance _ delegator (12) - eql? (24)
-
first
_ lineno (12) - label (12)
-
method
_ missing (12) - path (12)
-
request
_ method (36) -
request
_ method= (12) - seplist (12)
- service (24)
-
to
_ a (12)
検索結果
先頭5件
-
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"
//}... -
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,...)を文字列で返します。 -
WEBrick
:: HTTPResponse # request _ method=(method) (12309.0) -
リクエストの HTTP メソッドをセットします。 デフォルトは nil です。
...リクエストの HTTP メソッドをセットします。
デフォルトは nil です。
@param method リクエストの HTTP メソッドを文字列で指定します。... -
WEBrick
:: HTTPResponse # request _ method -> String | nil (12202.0) -
リクエストの HTTP メソッドを返します。
リクエストの HTTP メソッドを返します。 -
Method
# eql?(other) -> bool (12113.0) -
自身と other が同じインスタンスの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
...ッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
s = "bar"
a = s.method(:size)
b = s.method(:size)
p a == b #=> true
//}... -
Gem
:: QuickLoader # method _ missing (9102.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
UnboundMethod
# eql?(other) -> bool (6119.0) -
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
...@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = String.instance_method(:size)
p a == b #=> true
c = Array.instance_method(:size)
p a == c #=> false
//}... -
RubyVM
:: InstructionSequence # base _ label -> String (3025.0) -
self が表す命令シーケンスの基本ラベルを返します。
...rb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello......# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::InstructionSequence#label...