別のキーワード
種類
- インスタンスメソッド (932)
- 定数 (148)
- 特異メソッド (107)
- モジュール関数 (24)
- 文書 (20)
ライブラリ
- ビルトイン (455)
- bigdecimal (96)
- date (24)
-
irb
/ ext / save-history (12) -
irb
/ inspector (24) - json (48)
-
minitest
/ mock (2) -
minitest
/ spec (4) -
minitest
/ unit (48) - mkmf (12)
-
net
/ http (216) - openssl (24)
- optparse (120)
- rake (12)
-
rdoc
/ context (24) -
rdoc
/ generator / darkfish (12) -
rdoc
/ generator / ri (12) -
rdoc
/ markdown (12) -
rexml
/ document (12) -
ripper
/ filter (12) -
rubygems
/ gem _ path _ searcher (12) -
shell
/ command-processor (6) - win32ole (12)
クラス
- Array (18)
- BigDecimal (96)
- Complex (18)
- Date (24)
- Enumerator (18)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (24) - Float (36)
-
Gem
:: GemPathSearcher (12) -
IRB
:: Context (12) -
IRB
:: Inspector (12) -
JSON
:: State (24) -
MiniTest
:: Mock (2) -
MiniTest
:: Spec (4) -
MiniTest
:: Unit (15) -
MiniTest
:: Unit :: TestCase (8) -
Net
:: HTTP (204) -
Net
:: HTTPRequest (12) - Numeric (80)
- Object (48)
-
OpenSSL
:: PKey :: EC :: Point (24) - OptionParser (120)
-
RDoc
:: Context (24) -
RDoc
:: Generator :: Darkfish (12) -
RDoc
:: Generator :: RI (12) -
RDoc
:: Markdown (12) -
REXML
:: Elements (12) - Range (12)
-
Ripper
:: Filter (12) -
Shell
:: CommandProcessor (6) - Struct (52)
- WIN32OLE (12)
モジュール
- Enumerable (96)
- IRB (12)
- JSON (24)
- Kernel (12)
- MiniTest (2)
-
MiniTest
:: Assertions (23) - Process (36)
-
Rake
:: TaskManager (12) -
RubyVM
:: AbstractSyntaxTree (10)
キーワード
-
EXCEPTION
_ INFINITY (12) - GREGORIAN (12)
- INFINITY (24)
- Infinity (12)
- Inspector (12)
- JULIAN (12)
-
MINI
_ DIR (1) - MinusInfinity (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
PASSTHROUGH
_ EXCEPTIONS (1) -
RLIM
_ INFINITY (12) -
SIGN
_ NEGATIVE _ FINITE (12) -
SIGN
_ NEGATIVE _ INFINITE (12) -
SIGN
_ POSITIVE _ FINITE (12) -
SIGN
_ POSITIVE _ INFINITE (12) -
SUPPORTS
_ INFO _ SIGNAL (1) - VERSION (1)
- [] (12)
-
_ _ name _ _ (1) -
_ assertions (1) - after (1)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ raises (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) -
assertion
_ count (1) - autorun (1)
- before (1)
-
buffer
_ initial _ length (12) -
buffer
_ initial _ length= (12) -
capture
_ io (1) - chunk (12)
- copy (12)
-
create
_ makefile (12) - current (1)
-
definition
_ lists (12) - delete (12)
- errors (1)
-
exception
_ details (1) - expect (1)
- failures (1)
-
filter
_ backtrace (1) - finite? (42)
- infinite? (42)
- infinity? (12)
-
init
_ gemspecs (12) -
init
_ save _ history (12) - initgroups (12)
- initialize (42)
-
initialize
_ classes _ and _ modules (12) -
initialize
_ clone (12) -
initialize
_ copy (12) -
initialize
_ dup (12) -
initialize
_ methods _ etc (12) - inject (48)
- it (1)
-
keyword
_ init? (4) - location (1)
- lock (12)
- lookup (12)
- mkcol (12)
- move (12)
-
mu
_ pp (1) - new (48)
- of (10)
-
ole
_ activex _ initialize (12) -
on
_ head (12) -
on
_ tail (12) - parse (36)
- parse! (12)
- pass (1)
- passed? (1)
- patch (24)
- ppid (12)
-
process
_ args (1) - produce (6)
- propfind (12)
- proppatch (12)
- puke (1)
- put (12)
- put2 (24)
- reduce (36)
- report (1)
-
request
_ put (24) -
ruby 1
. 8 . 4 feature (12) - run (2)
-
run
_ test _ suites (1) -
set
_ to _ infinity! (12) - size (31)
- skips (1)
-
slice
_ before (12) -
start
_ time (1) - status (1)
- step (62)
- sum (42)
- summarize (24)
-
summary
_ indent (12) -
summary
_ width (12) -
test
_ count (1) -
test
_ methods (1) -
test
_ order (1) -
test
_ suites (1) -
to
_ a (12) - trace (12)
- unlock (12)
- verify (1)
検索結果
先頭5件
-
IRB
:: Inspector # init -> () (18201.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
Struct
. keyword _ init? -> bool | nil (6247.0) -
(このメソッドは Struct の下位クラスにのみ定義されています) 構造体が作成されたときに keyword_init: true を指定されていたら true を返します。 false を指定されていたら false を返します。 それ以外の場合は nil を返します。
...d_init: true を指定されていたら true を返します。
false を指定されていたら false を返します。
それ以外の場合は nil を返します。
//emlist[例][ruby]{
Foo = Struct.new(:a)
Foo.keyword_init? # => nil
Bar = Struct.new(:a, keyword_init: true)
Bar.keyword_init?......# => true
Baz = Struct.new(:a, keyword_init: false)
Baz.keyword_init? # => false
//}... -
Object
# initialize _ copy(obj) -> object (6218.0) -
(拡張ライブラリによる) ユーザ定義クラスのオブジェクトコピーの初期化メソッド。
...メソッドは変化しません。
デフォルトでは、Object#clone の内部で Object#initialize_clone から、
また Object#dup の内部で Object#initialize_dup から呼ばれます。
initialize_copy は、Ruby インタプリタが知り得ない情報をコピーするた
めに......を initialize_copy でコピーするよう定義しておくことで、dup や clone
を再定義する必要がなくなります。
デフォルトの Object#initialize_copy は、 freeze チェックおよび型のチェックを行い self
を返すだけのメソッドです。
initialize_......1
obj.taint
check Object.new.send(:initialize_copy, obj)
#=> instance variables: #<Object:0x4019c9d4>
# tainted?: false
# singleton methods: #<NoMethodError: ...>
check obj.dup
#=> instance variables: #<Object:0x4019c9c0 @foo=1>
# tainted?: true......ew.send(:initialize_copy, obj)
#=> instance variables: #<Object:0x4019c9d4>
# singleton methods: #<NoMethodError: ...>
check obj.dup
#=> instance variables: #<Object:0x4019c9c0 @foo=1>
# singleton methods: #<NoMethodError: ...>
check obj.clone
#=> instance... -
Gem
:: GemPathSearcher # init _ gemspecs -> [Gem :: Specification] (6201.0) -
インストール済みの Gem の Gem::Specification のリストを返します。
インストール済みの Gem の Gem::Specification のリストを返します。
リストはアルファベット順かつバージョンの新しい順にソートされています。 -
IRB
:: Context # init _ save _ history -> () (6201.0) -
自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える ようにします。
自身の持つ IRB::InputMethod オブジェクトが irb のヒストリを扱える
ようにします。
@see IRB::HistorySavingAbility.extended -
BigDecimal
# finite? -> bool (6200.0) -
self が ∞または NaN でないときに true を返します。それ以外のときに false を返します。
self が ∞または NaN でないときに true を返します。それ以外のときに
false を返します。 -
BigDecimal
# infinite? -> 1 | -1 | nil (6200.0) -
self が +∞のときに 1 、-∞のときに-1、それ以外のときに nil を返します。
self が +∞のときに 1 、-∞のときに-1、それ以外のときに nil を返します。 -
BigDecimal
:: EXCEPTION _ INFINITY -> Integer (6200.0) -
BigDecimal の計算結果が無限大になった場合に例外を発生させるかどう かを設定、確認する際の値を返します。
BigDecimal の計算結果が無限大になった場合に例外を発生させるかどう
かを設定、確認する際の値を返します。
BigDecimal.mode の第 1 引数に指定します。 -
BigDecimal
:: INFINITY -> BigDecimal (6200.0) -
正の無限大を表す BigDecimal オブジェクトを返します。
正の無限大を表す BigDecimal オブジェクトを返します。