ライブラリ
- ビルトイン (758)
- bigdecimal (12)
-
irb
/ cmd / help (12) -
irb
/ cmd / subirb (12) -
irb
/ context (24) -
irb
/ inspector (12) -
json
/ add / exception (12) - mkmf (72)
-
net
/ http (12) -
net
/ smtp (24) -
rake
/ rdoctask (36) - resolv (36)
- rss (72)
- socket (60)
- timeout (12)
クラス
- BigDecimal (12)
- Bignum (3)
-
CGI
:: Cookie (24) - Data (6)
- Dir (24)
- Exception (44)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: IrbCommand (12) -
IRB
:: Inspector (12) - Integer (12)
- Module (36)
- NameError (24)
-
Net
:: SMTP (24) - NoMethodError (12)
- Numeric (12)
- Object (12)
- Proc (14)
-
RDoc
:: Options (24) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (24) -
RSS
:: Rss :: Channel :: Cloud (24) -
RSS
:: Rss :: Channel :: Item :: Category (24) -
Rake
:: RDocTask (36) -
Resolv
:: DNS :: Name (12) -
Resolv
:: DNS :: Resource :: DomainName (12) -
RubyVM
:: InstructionSequence (72) - Socket (60)
- Struct (48)
- Thread (78)
-
Thread
:: Backtrace :: Location (36) - TracePoint (7)
-
WEBrick
:: Cookie (24)
モジュール
- Kernel (192)
-
Net
:: HTTPHeader (12)
オブジェクト
- main (126)
キーワード
- Context (12)
- DomainError (12)
- DomainName (12)
- Enumerator (12)
- Error (12)
- Fiber (12)
- FloatDomainError (12)
- Location (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 1 . 0 (4) - NameError (12)
- Ruby用語集 (12)
- [] (20)
- abort (12)
- args (12)
-
at
_ exit (12) - autoload (12)
-
backtrace
_ locations (36) -
base
_ label (24) - caller (36)
-
caller
_ locations (24) -
compile
_ file (12) -
def
_ inspector (12) - define (6)
-
define
_ method (24) - disasm (12)
- disassemble (12)
- domain (60)
- domain= (60)
- ehlo (12)
- execute (24)
-
find
_ library (24) - gethostbyname (12)
- gets (12)
- glob (16)
-
have
_ library (24) - helo (12)
- include (12)
- inspect (24)
-
instruction
_ sequence (7) - irb (12)
-
irb
/ completion (12) - label (12)
- logger (12)
- main= (12)
-
main
_ page (12) -
main
_ page= (12) -
main
_ type (12) - name (24)
- new (62)
- open (12)
- pair (12)
- pass (12)
- private (27)
- public (27)
- raise (12)
-
rake
/ rdoctask (12) -
rb
_ thread _ main (12) - rdoc (12)
- readline (12)
- readlines (12)
- refine (12)
- remainder (39)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
respond
_ to? (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
set
_ backtrace (12) - socketpair (12)
-
subdomain
_ of? (12) -
to
_ a (12) -
to
_ json (12) -
to
_ s (36) -
try
_ link (24) - using (24)
- 正規表現 (12)
検索結果
-
Struct
. new(*args) -> Struct (1.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]
//}