@@ -38,14 +38,10 @@ module StructuredParams
3838 def errors : () -> ::StructuredParams::Errors
3939
4040 # Convert structured objects to Hash and get attributes
41- # : (symbolize: true, compact: false) -> Hash[Symbol, untyped]
42- # : (symbolize: false, compact: false) -> Hash[String, untyped]
43- # : (symbolize: true, compact: true) -> Hash[Symbol, untyped]
44- # : (symbolize: false, compact: true) -> Hash[String, untyped]
45- def attributes : (symbolize: true, compact: false) -> Hash[Symbol, untyped ]
46- | (symbolize: false, compact: false) -> Hash[String, untyped ]
47- | (symbolize: true, compact: true) -> Hash[Symbol, untyped ]
48- | (symbolize: false, compact: true) -> Hash[String, untyped ]
41+ # : (?symbolize: false, ?compact: bool) -> Hash[String, untyped]
42+ # : (?symbolize: true, ?compact: bool) -> Hash[Symbol, untyped]
43+ def attributes : (?symbolize: false, ?compact: bool ) -> Hash[String, untyped ]
44+ | (?symbolize: true, ?compact: bool ) -> Hash[Symbol, untyped ]
4945
5046 private
5147
@@ -74,10 +70,8 @@ module StructuredParams
7470 def format_error_path : (Symbol, Integer?) -> String
7571
7672 # Serialize structured values
77- # : (bool, compact: false) -> untyped
78- # : (bool, compact: true) -> untyped
79- def serialize_structured_value : (bool , compact: false) -> untyped
80- | (bool , compact: true) -> untyped
73+ # : (bool, ?compact: bool) -> untyped
74+ def serialize_structured_value : (bool , ?compact: bool ) -> untyped
8175
8276 # Integrate structured parameter errors into parent errors
8377 # : (untyped, String) -> void
0 commit comments