Class: PdfMatcher::PdfFile::File
- Defined in:
- lib/pdf_matcher/pdf_file.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(path) ⇒ File
constructor
A new instance of File.
Methods inherited from Base
Constructor Details
#initialize(path) ⇒ File
Returns a new instance of File.
38 39 40 |
# File 'lib/pdf_matcher/pdf_file.rb', line 38 def initialize(path) super(data: nil, path: Pathname(path)) end |
Instance Method Details
#data ⇒ Object
42 43 44 |
# File 'lib/pdf_matcher/pdf_file.rb', line 42 def data @data ||= path.binread end |