Class: Frozen::Array

Inherits:
Array
  • Object
show all
Defined in:
lib/frozen-objects/array.rb

Overview

Note:

All calls are Array compatible.

Implicitly frozen Array.

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ Array

Returns a new instance of Array.



17
18
19
20
# File 'lib/frozen-objects/array.rb', line 17

def initialize(*args, &block)
    super(*args, &block)
    self.freeze
end