lib/useless/doc/core/body.rb in useless-doc-0.3.1 vs lib/useless/doc/core/body.rb in useless-doc-0.4.0
- old
+ new
@@ -18,10 +18,10 @@
# @param [Hash] attrs corresponds to the class's instance attributes.
#
def initialize(attrs)
@content_type = attrs[:content_type]
- @attributes = attrs[:attributes]
+ @attributes = attrs[:attributes] || []
end
# Documentation for an attribute on an HTTP body.
#
# @!attribute [r] key