Class: Frozen::String

Inherits:
String
  • Object
show all
Defined in:
lib/frozen-objects/string.rb

Overview

Note:

All calls are String compatible.

Implicitly frozen String.

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ String

Returns a new instance of String.



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

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