pytorch/third_party/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 list_from_ruby(arr)
    ret = Google::Protobuf::ListValue.new
    arr.each do |v|
      ret.values << value_from_ruby(v)
    end
    ret
  end
def list_from_ruby ( arr ) ret = Google :: Protobuf :: ListValue . new arr . each do | v | ret . values << 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
arr
<not_specific>