lib/sinclair/method_definition/parameter_helper.rb in sinclair-1.12.0 vs lib/sinclair/method_definition/parameter_helper.rb in sinclair-1.12.1
- old
+ new
@@ -114,10 +114,10 @@
#
# @return [Array<String>]
def defaults_strings
joinner = named? ? ': ' : ' = '
defaults.map do |key, value|
- "#{key}#{joinner}#{value}"
+ "#{key}#{joinner}#{value.to_json}"
end
end
end
end
end