672件ヒット
[601-672件を表示]
(0.025秒)
種類
- インスタンスメソッド (420)
- 特異メソッド (144)
- モジュール関数 (84)
- 文書 (24)
クラス
- BasicObject (24)
- Binding (12)
- Module (288)
- Object (60)
-
OpenSSL
:: X509 :: Name (48) - Shell (6)
- Struct (72)
モジュール
- Kernel (84)
オブジェクト
- main (54)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - [] (24)
- []= (12)
-
add
_ entry (12) -
class
_ variable _ get (12) -
const
_ get (12) -
const
_ missing (12) -
deprecate
_ constant (12) - fail (36)
-
initialize
_ copy (12) -
instance
_ eval (24) -
instance
_ method (12) -
local
_ variable _ get (12) - method (12)
- new (72)
- private (75)
-
private
_ constant (12) - protected (48)
- public (75)
-
public
_ constant (12) -
public
_ instance _ method (12) -
public
_ method (12) -
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) -
require
_ relative (12) -
ruby 1
. 6 feature (12) -
singleton
_ method (12) -
unalias
_ command (6) -
undef
_ method (12)
検索結果
先頭5件
-
main
. public() -> nil (12.0) -
メソッドを public に設定します。
...blic に設
定します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#public... -
main
. public(*name) -> Array (12.0) -
メソッドを public に設定します。
...blic に設
定します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#public... -
main
. public(*name) -> self (12.0) -
メソッドを public に設定します。
...引数が与えられた時には引数によって指定されたメソッドを public に設
定します。
@param name 0 個以上の String または Symbol を指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#public... -
main
. public(name) -> String | Symbol (12.0) -
メソッドを public に設定します。
...blic に設
定します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#public... -
main
. public(names) -> Array (12.0) -
メソッドを public に設定します。
...blic に設
定します。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
@see Module#public... -
Struct
. [](*args) -> Struct (7.0) -
(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。
...初期値を指定します。メンバの初期値は指定されなければ nil です。
@return 構造体クラスのインスタンス。
@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。
//emlist[例][ruby]{
Foo = Struct.new(... -
Struct
. new(*args) -> Class (7.0) -
Struct クラスに新しいサブクラスを作って、それを返します。
...な指定はエラーになります。
//emlist[例][ruby]{
p Struct.new('foo', 'bar')
# => -:1:in `new': identifier foo needs to be constant (NameError)
//}
また args[1..-1] は、Symbol か String で指定します。
//emlist[例][ruby]{
p Struct.new("Foo", :foo, :bar) # => Struct::Foo
/... -
Struct
. new(*args) -> Struct (7.0) -
(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。
...初期値を指定します。メンバの初期値は指定されなければ nil です。
@return 構造体クラスのインスタンス。
@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。
//emlist[例][ruby]{
Foo = Struct.new(... -
Struct
. new(*args) {|subclass| block } -> Class (7.0) -
Struct クラスに新しいサブクラスを作って、それを返します。
...な指定はエラーになります。
//emlist[例][ruby]{
p Struct.new('foo', 'bar')
# => -:1:in `new': identifier foo needs to be constant (NameError)
//}
また args[1..-1] は、Symbol か String で指定します。
//emlist[例][ruby]{
p Struct.new("Foo", :foo, :bar) # => Struct::Foo
/... -
Struct
. new(*args , keyword _ init: false) -> Class (7.0) -
Struct クラスに新しいサブクラスを作って、それを返します。
...な指定はエラーになります。
//emlist[例][ruby]{
p Struct.new('foo', 'bar')
# => -:1:in `new': identifier foo needs to be constant (NameError)
//}
また args[1..-1] は、Symbol か String で指定します。
//emlist[例][ruby]{
p Struct.new("Foo", :foo, :bar) # => Struct::Foo
/... -
Struct
. new(*args , keyword _ init: false) {|subclass| block } -> Class (7.0) -
Struct クラスに新しいサブクラスを作って、それを返します。
...な指定はエラーになります。
//emlist[例][ruby]{
p Struct.new('foo', 'bar')
# => -:1:in `new': identifier foo needs to be constant (NameError)
//}
また args[1..-1] は、Symbol か String で指定します。
//emlist[例][ruby]{
p Struct.new("Foo", :foo, :bar) # => Struct::Foo
/... -
Struct
. new(*args , keyword _ init: nil) -> Class (7.0) -
Struct クラスに新しいサブクラスを作って、それを返します。
...な指定はエラーになります。
//emlist[例][ruby]{
p Struct.new('foo', 'bar')
# => -:1:in `new': identifier foo needs to be constant (NameError)
//}
また args[1..-1] は、Symbol か String で指定します。
//emlist[例][ruby]{
p Struct.new("Foo", :foo, :bar) # => Struct::Foo
/... -
Struct
. new(*args , keyword _ init: nil) {|subclass| block } -> Class (7.0) -
Struct クラスに新しいサブクラスを作って、それを返します。
...な指定はエラーになります。
//emlist[例][ruby]{
p Struct.new('foo', 'bar')
# => -:1:in `new': identifier foo needs to be constant (NameError)
//}
また args[1..-1] は、Symbol か String で指定します。
//emlist[例][ruby]{
p Struct.new("Foo", :foo, :bar) # => Struct::Foo
/...