Module: JaxrsDoc::AnnotationScanner

Defined in:
lib/parse.rb

Constant Summary collapse

JAXRS_ANNOTATIONS =
%w[ ApplicationPath Consumes CookieParam DefaultValue 
DELETE Encoded FormParam FormDataParam GET HEAD HeaderParam 
HttpMethod MatrixParam OPTIONS Path PathParam
POST Produces PUT QueryParam ]

Class Method Summary collapse

Class Method Details

.scan_annotations(text) ⇒ Object



15
16
17
18
19
# File 'lib/parse.rb', line 15

def self.scan_annotations(text)
  annotations = []
  text.scan(jaxrs_annotations_regexp) {|s| annotations << JaxrsDoc::Annotation.new(s.first)}
  JaxrsDoc::AnnotationsGroup.new(annotations)
end