Exception: Jsapi::Meta::Model::Attributes::FrozenError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jsapi/meta/model/attributes/frozen_error.rb

Overview

Raised when trying to modify a frozen attribute.

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ FrozenError

Returns a new instance of FrozenError.



9
10
11
# File 'lib/jsapi/meta/model/attributes/frozen_error.rb', line 9

def initialize(target)
  super("can't modify frozen #{target.class}")
end