vendor/protobuf/ruby/tests/common_tests.rb
# Ruby 2.5 changed to raise FrozenError instead of RuntimeError
Ruby 2.5 changed to raise FrozenError instead of RuntimeError
Ruby 2 . 5 changed to raise FrozenError instead of RuntimeError
def struct_from_ruby(hash)
    ret = Google::Protobuf::Struct.new
    hash.each do |k, v|
      ret.fields[k] ||= value_from_ruby(v)
    end
    ret
  end
def struct_from_ruby ( hash ) ret = Google :: Protobuf :: Struct . new hash . each do | k , v | ret . fields [ k ] ||= value_from_ruby ( v ) end ret end
Ruby 2.5 changed to raise FrozenError instead of RuntimeError
Ruby 2 . 5 changed to raise FrozenError instead of RuntimeError
hash
<not_specific>