Class: Formatted
Direct Known Subclasses
Instance Attribute Summary collapse
-
#formatted ⇒ Object
readonly
Returns the value of attribute formatted.
Attributes inherited from Results
Instance Method Summary collapse
- #get_line_to_print(lnum) ⇒ Object
-
#initialize ⇒ Formatted
constructor
A new instance of Formatted.
Methods inherited from Results
Constructor Details
#initialize ⇒ Formatted
Returns a new instance of Formatted.
14 15 16 17 |
# File 'lib/glark/output/formatted.rb', line 14 def initialize super @formatted = [] end |
Instance Attribute Details
#formatted ⇒ Object (readonly)
Returns the value of attribute formatted.
12 13 14 |
# File 'lib/glark/output/formatted.rb', line 12 def formatted @formatted end |
Instance Method Details
#get_line_to_print(lnum) ⇒ Object
19 20 21 |
# File 'lib/glark/output/formatted.rb', line 19 def get_line_to_print lnum @formatted[lnum] || @file.get_line(lnum) end |