diff options
-rw-r--r-- | struct.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -475,11 +475,10 @@ rb_struct_define_under(VALUE outer, const char *name, ...) * Customer.new("Dave", "123 Main") * #=> #<struct Customer name="Dave", address="123 Main"> * - * If keyword_init: true option is given, .new takes keyword arguments instead - * of normal arguments. + * If the optional +keyword_init+ keyword argument is set to +true+, + * .new takes keyword arguments instead of normal arguments. * * Customer = Struct.new(:name, :address, keyword_init: true) - * #=> Customer * Customer.new(name: "Dave", address: "123 Main") * #=> #<struct Customer name="Dave", address="123 Main"> * |