Module: Frozen
- Defined in:
- lib/frozen-objects.rb,
lib/frozen-objects/hash.rb,
lib/frozen-objects/array.rb,
lib/frozen-objects/string.rb
Overview
Implicitly frozen objects.
Defined Under Namespace
Class Method Summary collapse
-
.<<(value) ⇒ Object
Creates frozen object by operator.
Class Method Details
.<<(value) ⇒ Object
Creates frozen object by operator.
22 23 24 |
# File 'lib/frozen-objects.rb', line 22 def self.<<(value) value.freeze end |