Class: AnnotationExtractor::Annotation
- Inherits:
-
Object
- Object
- AnnotationExtractor::Annotation
- Defined in:
- lib/notes.rb
Overview
An annotation class.
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#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
-
#initialize(args) ⇒ Annotation
constructor
Instanciate a new Annotation from a hash.
Constructor Details
#initialize(args) ⇒ Annotation
Instanciate a new Annotation from a hash.
20 21 22 23 24 25 |
# File 'lib/notes.rb', line 20 def initialize(args) @file = args[:file] @line = args[:line] @tag = args[:tag] @text = args[:text] end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
17 18 19 |
# File 'lib/notes.rb', line 17 def file @file end |
#line ⇒ Object
Returns the value of attribute line.
17 18 19 |
# File 'lib/notes.rb', line 17 def line @line end |
#tag ⇒ Object
Returns the value of attribute tag.
17 18 19 |
# File 'lib/notes.rb', line 17 def tag @tag end |
#text ⇒ Object
Returns the value of attribute text.
17 18 19 |
# File 'lib/notes.rb', line 17 def text @text end |