1102件ヒット
[101-200件を表示]
(0.191秒)
ライブラリ
- ビルトイン (499)
-
cgi
/ core (24) -
cgi
/ html (96) - delegate (24)
-
irb
/ input-method (84) - json (144)
-
minitest
/ spec (1) -
minitest
/ unit (2) -
net
/ http (24) - openssl (12)
-
rdoc
/ top _ level (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (12) - win32ole (144)
クラス
- CGI (12)
- Delegator (24)
- Exception (12)
-
IRB
:: FileInputMethod (12) -
IRB
:: InputMethod (12) -
IRB
:: ReadlineInputMethod (24) -
IRB
:: StdioInputMethod (36) -
JSON
:: State (12) - Method (36)
-
MiniTest
:: Unit (1) - Module (144)
- NameError (12)
-
Net
:: HTTPGenericRequest (12) - Object (61)
-
OpenSSL
:: Engine (12) - Proc (12)
-
RDoc
:: TopLevel (12) - Regexp (24)
-
RubyVM
:: InstructionSequence (72) - String (60)
- TracePoint (31)
- UnboundMethod (36)
-
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) -
WIN32OLE
_ METHOD (96) -
WIN32OLE
_ PARAM (48)
モジュール
-
CGI
:: HtmlExtension (96) -
CGI
:: QueryExtension (12) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (36) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (12)
キーワード
-
absolute
_ path (12) -
assert
_ respond _ to (1) - backtrace (12)
-
base
_ label (12) -
callee
_ id (12) - encode (36)
-
event
_ interface (12) -
file
_ name (12) -
find
_ local _ symbol (12) -
first
_ lineno (12) - form (48)
- generate (12)
- gets (36)
- header (12)
- helpfile (12)
- helpstring (12)
- inspect (24)
-
instance
_ methods (12) -
invoke
_ kind (12) - label (12)
- line (24)
- match (24)
-
method
_ defined? (12) -
method
_ id (12) - methods (12)
-
module
_ function (12) -
multipart
_ form (48) -
must
_ respond _ to (1) - name (24)
-
ole
_ type (12) -
ole
_ type _ detail (12) - parameters (7)
- path (12)
- private (12)
-
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - protected (12)
-
protected
_ instance _ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (24) - public (12)
-
public
_ instance _ methods (12) -
public
_ method _ defined? (12) -
public
_ methods (24) - puke (1)
-
readable
_ atfer _ eof? (12) -
request
_ method (36) -
return
_ type (12) -
return
_ type _ detail (12) - service (12)
-
set
_ default (12) -
singleton
_ methods (12) -
source
_ location (36) -
to
_ a (12) -
to
_ json (108) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ s (72) -
to
_ str (12)
検索結果
先頭5件
-
Module
# private _ method _ defined?(name , inherit=true) -> bool (6310.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が private であるときに true を返します。 そうでなければ false を返します。
... true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定義されたメソッドも対象になります。
@see Module#method......public_method_defined?, Module#protected_method_defined?
//emlist[例][ruby]{
module A
def method1() end
end
class B
private
def method2() end
end
class C < B
include A
def method3() end
end
A.method_defined? :method1 #=> true
C.private_method_defined? "method1"......#=> false
C.private_method_defined? "method2" #=> true
C.private_method_defined? "method2", true #=> true
C.private_method_defined? "method2", false #=> false
C.method_defined? "method2" #=> false
//}... -
Module
# protected _ method _ defined?(name , inherit=true) -> bool (6310.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。
... true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定義されたメソッドも対象になります。
@see Module#method......ublic_method_defined?, Module#private_method_defined?
//emlist[例][ruby]{
module A
def method1() end
end
class B
protected
def method2() end
end
class C < B
include A
def method3() end
end
A.method_defined? :method1 #=> true
C.protected_method_defined? "method1"......#=> false
C.protected_method_defined? "method2" #=> true
C.protected_method_defined? "method2", true #=> true
C.protected_method_defined? "method2", false #=> false
C.method_defined? "method2" #=> true
//}... -
Module
# public _ method _ defined?(name , inherit=true) -> bool (6310.0) -
インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が public であるときに true を返します。 そうでなければ false を返します。
... true を返します。
そうでなければ false を返します。
@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジュールで
定義されたメソッドも対象になります。
@see Module#method......private_method_defined?, Module#protected_method_defined?
//emlist[例][ruby]{
module A
def method1() end
end
class B
protected
def method2() end
end
class C < B
include A
def method3() end
end
A.method_defined? :method1 #=> true
C.public_method_defined? "method1"......#=> true
C.public_method_defined? "method1", true #=> true
C.public_method_defined? "method1", false #=> true
C.public_method_defined? "method2" #=> false
C.method_defined? "method2" #=> true
//}... -
String
# to _ str -> String (6219.0) -
self を返します。
.../emlist[例][ruby]{
p "str".to_s # => "str"
p "str".to_str # => "str"
//}
このメソッドは、文字列を他のクラスのインスタンスと混ぜて処理したいときに有効です。
例えば返り値が文字列か nil であるメソッド some_method があるとき、
to_s......メソッドを使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_method(5).to_s.downcase
//}... -
CGI
:: QueryExtension # request _ method -> String (6218.0) -
ENV['REQUEST_METHOD'] を返します。
...ENV['REQUEST_METHOD'] を返します。... -
Exception
# backtrace -> [String] (6207.0) -
バックトレース情報を返します。
...ourcefile}:#{sourceline}:in `#{method}'"
(メソッド内の場合)
* "#{sourcefile}:#{sourceline}"
(トップレベルの場合)
という形式の String の配列です。
//emlist[例][ruby]{
def methd
raise
end
begin
methd
rescue => e
p e.backtrace
end
#=> ["filename.rb:2:in......`methd'", "filename.rb:6"]
//}
@see Exception#backtrace_locations... -
WEBrick
:: HTTPRequest # request _ method -> String (6202.0) -
クライアントのリクエストの HTTP メソッド(GET, POST,...)を文字列で返します。
クライアントのリクエストの HTTP メソッド(GET, POST,...)を文字列で返します。 -
WEBrick
:: HTTPResponse # request _ method -> String | nil (6202.0) -
リクエストの HTTP メソッドを返します。
リクエストの HTTP メソッドを返します。 -
Delegator
# protected _ methods(all = true) -> [Symbol] (6201.0) -
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
...そのオブジェクトが理解できる protected メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#protected_methods...