Skip to content

Commit

Permalink
Add size to Map class
Browse files Browse the repository at this point in the history
  • Loading branch information
miyucy committed Apr 18, 2021
1 parent f763a2a commit 8f542d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ruby/ext/google/protobuf_c/map.c
Expand Up @@ -678,6 +678,7 @@ void Map_register(VALUE module) {
rb_define_method(klass, "delete", Map_delete, 1);
rb_define_method(klass, "clear", Map_clear, 0);
rb_define_method(klass, "length", Map_length, 0);
rb_define_method(klass, "size", Map_length, 0);
rb_define_method(klass, "dup", Map_dup, 0);
rb_define_method(klass, "==", Map_eq, 1);
rb_define_method(klass, "freeze", Map_freeze, 0);
Expand Down

0 comments on commit 8f542d6

Please sign in to comment.