Class: Utils::Grepper::Queue
Instance Attribute Summary collapse
-
#max_size ⇒ Object
readonly
Returns the value of attribute max_size.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(max_size) ⇒ Queue
constructor
A new instance of Queue.
- #push(x) ⇒ Object (also: #<<)
Constructor Details
#initialize(max_size) ⇒ Queue
Returns a new instance of Queue.
14 15 16 |
# File 'lib/utils/grepper.rb', line 14 def initialize(max_size) @max_size, @data = max_size, [] end |
Instance Attribute Details
#max_size ⇒ Object (readonly)
Returns the value of attribute max_size.
18 19 20 |
# File 'lib/utils/grepper.rb', line 18 def max_size @max_size end |