425件ヒット
[401-425件を表示]
(0.013秒)
ライブラリ
- ビルトイン (261)
- csv (11)
-
irb
/ extend-command (33) -
json
/ add / symbol (11) -
minitest
/ unit (1) - psych (31)
-
rdoc
/ markdown (11) -
rexml
/ document (22) -
ripper
/ lexer (11) - uri (11)
-
webrick
/ cgi (11) -
webrick
/ httpserver (11)
クラス
- CSV (11)
- Data (6)
-
MiniTest
:: Unit :: TestCase (1) - Module (11)
-
RDoc
:: Markdown (11) -
REXML
:: Document (11) -
REXML
:: Element (11) - Ripper (11)
- SignalException (33)
- Struct (55)
- Symbol (22)
- Thread (11)
- TracePoint (22)
-
URI
:: Generic (11) -
WEBrick
:: CGI (11) -
WEBrick
:: HTTPServer (11)
モジュール
- GC (44)
-
IRB
:: ContextExtender (11) -
IRB
:: ExtendCommandBundle (22) - Psych (31)
オブジェクト
- main (68)
キーワード
- [] (11)
-
all
_ symbols (11) - component (11)
- constants (11)
-
def
_ extend _ command (22) - define (4)
-
define
_ method (22) -
handle
_ interrupt (11) -
irb
_ original _ method _ name (11) -
json
_ create (11) -
latest
_ gc _ info (22) - lex (11)
- load (14)
- members (13)
- new (132)
- private (23)
- public (23)
-
safe
_ load (17) - stat (22)
- table (11)
-
test
_ order (1) - trace (11)
検索結果
-
main
. public(*name) -> self (7.0) -
メソッドを public に設定します。
...引数が与えられた時には引数によって指定されたメソッドを public に設
定します。
@param name 0 個以上の String または Symbol を指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#public... -
Struct
. [](*args) -> Struct (6.0) -
(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。
(このメソッドは Struct の下位クラスにのみ定義されています)
構造体オブジェクトを生成して返します。
@param args 構造体の初期値を指定します。メンバの初期値は指定されなければ nil です。
@return 構造体クラスのインスタンス。
@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。
//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
foo = Foo.new(1)
p foo.values # => [1, nil]
//} -
Struct
. new(*args) -> Struct (6.0) -
(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。
(このメソッドは Struct の下位クラスにのみ定義されています)
構造体オブジェクトを生成して返します。
@param args 構造体の初期値を指定します。メンバの初期値は指定されなければ nil です。
@return 構造体クラスのインスタンス。
@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。
//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
foo = Foo.new(1)
p foo.values # => [1, nil]
//}