Class: AnnotationExtractor::Annotation

Inherits:
Object
  • Object
show all
Defined in:
lib/notes.rb

Overview

An annotation class.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject

Returns the value of attribute file.



17
18
19
# File 'lib/notes.rb', line 17

def file
  @file
end

#lineObject

Returns the value of attribute line.



17
18
19
# File 'lib/notes.rb', line 17

def line
  @line
end

#tagObject

Returns the value of attribute tag.



17
18
19
# File 'lib/notes.rb', line 17

def tag
  @tag
end

#textObject

Returns the value of attribute text.



17
18
19
# File 'lib/notes.rb', line 17

def text
  @text
end