class OpenStruct

def modifiable? # :nodoc:

:nodoc:

modified before granting access to the internal Hash table to be modified.
Used internally to check if the OpenStruct is able to be
def modifiable? # :nodoc:
  begin
    @modifiable = true
  rescue
    exception_class = defined?(FrozenError) ? FrozenError : RuntimeError
    raise exception_class, "can't modify frozen #{self.class}", caller(3)
  end
  @table
end