Class: GhSearch::Formatters::Base
- Inherits:
-
Object
- Object
- GhSearch::Formatters::Base
- Defined in:
- lib/gh_search/formatters/base.rb
Instance Attribute Summary collapse
-
#output_file ⇒ Object
readonly
Returns the value of attribute output_file.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #write!(match) ⇒ Object
- #write_file! ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/gh_search/formatters/base.rb', line 5 def initialize(={}) @output_file = [:output] end |
Instance Attribute Details
#output_file ⇒ Object (readonly)
Returns the value of attribute output_file.
4 5 6 |
# File 'lib/gh_search/formatters/base.rb', line 4 def output_file @output_file end |
Instance Method Details
#write!(match) ⇒ Object
9 10 11 |
# File 'lib/gh_search/formatters/base.rb', line 9 def write!(match) raise NotImplementedError end |
#write_file! ⇒ Object
13 14 15 |
# File 'lib/gh_search/formatters/base.rb', line 13 def write_file! # used for writing out a file end |