Class: AnnotateRb::ModelAnnotator::SingleFileAnnotatorInstruction
- Inherits:
-
Object
- Object
- AnnotateRb::ModelAnnotator::SingleFileAnnotatorInstruction
- Defined in:
- lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb
Overview
A plain old Ruby object (PORO) that contains all necessary information for SingleFileAnnotator
Instance Attribute Summary collapse
-
#annotation ⇒ Object
readonly
Returns the value of attribute annotation.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(file, annotation, position, options) ⇒ SingleFileAnnotatorInstruction
constructor
A new instance of SingleFileAnnotatorInstruction.
Constructor Details
#initialize(file, annotation, position, options) ⇒ SingleFileAnnotatorInstruction
Returns a new instance of SingleFileAnnotatorInstruction.
7 8 9 10 11 12 |
# File 'lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb', line 7 def initialize(file, annotation, position, ) @file = file # Path to file @annotation = annotation # Annotation string @position = position # Position in the file where to write the annotation to @options = end |
Instance Attribute Details
#annotation ⇒ Object (readonly)
Returns the value of attribute annotation.
14 15 16 |
# File 'lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb', line 14 def annotation @annotation end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
14 15 16 |
# File 'lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb', line 14 def file @file end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb', line 14 def @options end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
14 15 16 |
# File 'lib/annotate_rb/model_annotator/single_file_annotator_instruction.rb', line 14 def position @position end |