Class: PTJ::Parser::FileParser
- Inherits:
-
Object
- Object
- PTJ::Parser::FileParser
- Defined in:
- lib/ptj/parser/fileparser.rb
Direct Known Subclasses
CountPassOnly, HashPassOnlyColon, PassHashOnly, PassOnly, PassThreeColons
Instance Method Summary collapse
-
#parse_line(line) ⇒ Object
Parse a file line-by-line and return the necessary results.
- #total_count(file) ⇒ Object
Instance Method Details
#parse_line(line) ⇒ Object
Parse a file line-by-line and return the necessary results.
12 13 14 |
# File 'lib/ptj/parser/fileparser.rb', line 12 def parse_line(line) raise(NotImplementedError, "This is an abstract implementation, you must override parse_line") end |
#total_count(file) ⇒ Object
16 17 18 |
# File 'lib/ptj/parser/fileparser.rb', line 16 def total_count(file) raise(NotImplementedError, "This is an abstract implementation, you must override parse_line") end |