lib/swagger_yard/property.rb in swagger_yard-0.4.3 vs lib/swagger_yard/property.rb in swagger_yard-0.4.4

- old
+ new

@@ -4,9 +4,12 @@ # class Property attr_reader :name, :description def self.from_tag(tag) + tag = SwaggerYard.requires_name_and_type(tag) + return nil unless tag + name, options_string = tag.name.split(/[\(\)]/) options = options_string.to_s.split(',').map(&:strip) new(name, tag.types, tag.text, options)