Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > threadライブラリ > Thread::SizedQueueクラス > max=
max=(n)
キューの最大サイズを設定します。
例 require 'thread' q = SizedQueue.new(4) q.max # => 4 q.max = 5 q.max # => 5
require 'thread' q = SizedQueue.new(4) q.max # => 4 q.max = 5 q.max # => 5