lib/rspec_api_docs/formatter/resource/parameter.rb in rspec-api-docs-0.8.0 vs lib/rspec_api_docs/formatter/resource/parameter.rb in rspec-api-docs-0.9.0
- old
+ new
@@ -32,8 +32,13 @@
# @return [true, false]
def ==(other)
name == other.name &&
parameter == other.parameter
end
+
+ # @return [String, nil]
+ def type
+ parameter[:type]
+ end
end
end
end