Class: SourceAnnotationExtractor::Annotation
- Inherits:
-
Struct
- Object
- Struct
- SourceAnnotationExtractor::Annotation
- Defined in:
- lib/reactive-dev/source_annotation_extractor.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
2 3 4 |
# File 'lib/reactive-dev/source_annotation_extractor.rb', line 2 def line @line end |
#tag ⇒ Object
Returns the value of attribute tag
2 3 4 |
# File 'lib/reactive-dev/source_annotation_extractor.rb', line 2 def tag @tag end |
#text ⇒ Object
Returns the value of attribute text
2 3 4 |
# File 'lib/reactive-dev/source_annotation_extractor.rb', line 2 def text @text end |
Instance Method Details
#to_s(options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/reactive-dev/source_annotation_extractor.rb', line 3 def to_s(={}) s = "[%3d] " % line s << "[#{tag}] " if [:tag] s << text end |