Class: Parser::Reader
- Inherits:
-
Object
- Object
- Parser::Reader
- Defined in:
- lib/parser/reader.rb
Constant Summary collapse
- VALID_EXTENSIONS =
%w[.log .txt].freeze
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(file) ⇒ Reader
constructor
A new instance of Reader.
Constructor Details
#initialize(file) ⇒ Reader
Returns a new instance of Reader.
9 10 11 |
# File 'lib/parser/reader.rb', line 9 def initialize(file) @file = file end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
7 8 9 |
# File 'lib/parser/reader.rb', line 7 def file @file end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/parser/reader.rb', line 13 def call validate_presence validate_extension aggregate end |