Class: JaxrsDoc::Annotation
- Inherits:
-
Object
- Object
- JaxrsDoc::Annotation
- Defined in:
- lib/annotations.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(annotation_text) ⇒ Annotation
constructor
A new instance of Annotation.
- #to_s ⇒ Object
Constructor Details
#initialize(annotation_text) ⇒ Annotation
Returns a new instance of Annotation.
79 80 81 82 83 |
# File 'lib/annotations.rb', line 79 def initialize(annotation_text) @text = annotation_text.strip @name = @text.delete("@").split("(")[0] parse_values end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
77 78 79 |
# File 'lib/annotations.rb', line 77 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
77 78 79 |
# File 'lib/annotations.rb', line 77 def value @value end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
77 78 79 |
# File 'lib/annotations.rb', line 77 def values @values end |
Instance Method Details
#to_s ⇒ Object
85 86 87 |
# File 'lib/annotations.rb', line 85 def to_s @text end |