るりまサーチ

最速Rubyリファレンスマニュアル検索!
58件ヒット [1-58件を表示] (0.021秒)
トップページ > クエリ:length[x] > クエリ:size[x] > 種類:文書[x]

別のキーワード

  1. _builtin length
  2. csv length
  3. dbm length
  4. rss length=
  5. set length

検索結果

1.6.8から1.8.0への変更点(まとめ) (31.0)

1.6.8から1.8.0への変更点(まとめ) * ((<1.6.8から1.8.0への変更点(まとめ)/インタプリタの変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたクラス/モジュール>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたメソッド>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加された定数>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張されたクラス/メソッド(互換性のある変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/変更されたクラス/メソッド(互換性のない変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/文法の変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/正規表現>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Marshal>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Windows 対応>)) * ((<1.6.8から1.8.0への変更点(まとめ)/廃止された(される予定の)機能>)) * ((<1.6.8から1.8.0への変更点(まとめ)/ライブラリ>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張ライブラリAPI>)) * ((<1.6.8から1.8.0への変更点(まとめ)/バグ修正>)) * ((<1.6.8から1.8.0への変更点(まとめ)/サポートプラットフォームの追加>))

...だそうです)

: ((<Range#size|Range/size>)) [obsolete]
: ((<Range#length|Range/length>)) [obsolete]

このメソッドはなくなりました。
((<ruby-talk:64479>)), ((<ruby-talk:72133>))

Range の要素数を得るには

p(("a".."z").to_a.size)

などとする必要...
...[lib] [new]

追加

: ((<"io/wait">)) [lib] [new]

追加

: ((<mkmf>)) [lib] [new]

新しい判定メソッド have_type(), check_sizeof() が追加されました。

: ((<pathname>)) [lib] [new]

追加

: ((<resolv>)) [lib] [compat]

Win32 に対応しました...

ruby 1.8.2 feature (25.0)

ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。

...WEBrick::HTTPRequest [lib] [new]
new methods. accept, accept_charset, accept_encoding, accept_language,
content_length and content_type.

: WEBrick::HTTPResponse#content_length= [lib] [new]
: WEBrick::HTTPResponse#content_type= [lib] [new]
: WEBrick::HTTPUtils.parse_qvalues [lib] [new]
: WEBri...
...tringScanner#restsize [lib] [obsolete]
$VERVOSE が設定されている時に警告がでるようになりました。use #rest_size.
: StringScanner#matchedsize [lib] [obsolete]
$VERVOSE が設定されている時に警告がでるようになりました。use #matched_size.
: ScanError [l...

NEWS for Ruby 3.0.0 (19.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...ws the help message via the pager designated by the value.
16754

=== `--backtrace-limit` option

The `--backtrace-limit` option limits the maximum length of a backtrace.
8661

== Core classes updates

Outstanding ones only.

* Array
* The following methods now return Array instances instead o...
...eql? are now defined and will return true for separate Proc instances if the procs were created from the same block. 14267
* Queue / SizedQueue
* Queue#pop, SizedQueue#push and related methods may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Ractor...
...* Microarchitectural optimizations
* Native functions shared by multiple methods are deduplicated on JIT compaction.
* Decrease code size of hot paths by some optimizations and partitioning cold paths.
* Instance variables
* Eliminate some redundant checks.
* Skip...

NEWS for Ruby 2.2.0 (13.0)

NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...as a
block, and the number of yielded arguments does not match the formal
arguments of the lambda, if just an array is yielded and its length
matches.

* Process
* Process.spawn のようなプロセスを起動するようなメソッドは [:out, :err]
からリダ...
...しました。メンテナンスしていないコードでした。

* ObjectSpace (after requiring "objspace")
* ObjectSpace.#memsize_of(obj) は sizeof(RVALUE) を含むようになりました。
8984

* prime
* 非互換:
* Prime.prime? は負の数に対して false...
...tional は隠されました 9513
かわりに rb_rational_num と rb_rational_den を使います

* rb_big_new と rb_big_resize は long のかわりに size_t を受け取ります

* rb_num2long は SIGNED_VALUE のかわりに long を返します

* rb_num2ulong は VALUE のかわ...

Ruby用語集 (13.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...し、切り替えて使うための
ツールの一つ。Linux、macOS などで動作する。

https://github.com/rbenv/rbenv

: RD(Ruby Document format)
Ruby スクリプト中に記述することを念頭に作られたドキュメントフォーマット。

: RDoc
Ruby スクリ...
...である。
「str.size」「user&.name」といったメソッド呼び出しにおける
「.」「&.」も演算子である。
「[*0..9]」におけるいわゆる splat 展開の * や、
Proc オブジェクトをブロックとして渡す「strs.map(&:length)」に
おける &...
...ターの宣言をせずに _1、_2 などで第一、第二ブロック
パラメーターを参照する。

: ヒアドキュメント
: here document
文字列リテラルの一種で、「<<識別子」のような形の式を含む行の次行から、その
識別子だけの行の直...

絞り込み条件を変える

制御構造 (13.0)

制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END

...明しています。

=== 繰り返し

====[a:while] while

//emlist[例][ruby]{
ary = [0,2,4,8,16,32,64,128,256,512,1024]
i = 0
while i < ary.length
print ary[i]
i += 1
end
//}

文法:

while 式 [do]
...
end

式を評価した値が真の間、本体を繰...
...うなメソッド(イテレータ)を定義する必要があります。

//emlist[][ruby]{
class Array
def each2
i = 0
while i < self.size
yield self[i], self[i+1]
i += 2
end
end
end
//}

====[a:break] break

//emlist[例][ruby]{
i = 0
while i < 3
print i, "\n"
bre...