Class: Fdlint::Printer::BasePrinter
- Defined in:
- lib/fdlint/printer/base_printer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#results ⇒ Object
Returns the value of attribute results.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(opt = {}) ⇒ BasePrinter
constructor
A new instance of BasePrinter.
- #post_validate(file) ⇒ Object
- #pre_validate(file) ⇒ Object
- #print(file, source, results) ⇒ Object
Constructor Details
#initialize(opt = {}) ⇒ BasePrinter
Returns a new instance of BasePrinter.
7 8 9 |
# File 'lib/fdlint/printer/base_printer.rb', line 7 def initialize( opt={} ) @opt= opt end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
11 12 13 |
# File 'lib/fdlint/printer/base_printer.rb', line 11 def file @file end |
#results ⇒ Object
Returns the value of attribute results.
11 12 13 |
# File 'lib/fdlint/printer/base_printer.rb', line 11 def results @results end |
#source ⇒ Object
Returns the value of attribute source.
11 12 13 |
# File 'lib/fdlint/printer/base_printer.rb', line 11 def source @source end |
Instance Method Details
#post_validate(file) ⇒ Object
16 17 |
# File 'lib/fdlint/printer/base_printer.rb', line 16 def post_validate( file ) end |
#pre_validate(file) ⇒ Object
13 14 |
# File 'lib/fdlint/printer/base_printer.rb', line 13 def pre_validate( file ) end |
#print(file, source, results) ⇒ Object
19 20 21 |
# File 'lib/fdlint/printer/base_printer.rb', line 19 def print( file, source, results ) @file, @source, @results = file, source, results || [] end |