class PdfMatcher::PdfFile::File

Public Class Methods

new(path) click to toggle source
Calls superclass method PdfMatcher::PdfFile::Base::new
# File lib/pdf_matcher/pdf_file.rb, line 38
def initialize(path)
  super(data: nil, path: Pathname(path))
end

Public Instance Methods

data() click to toggle source
# File lib/pdf_matcher/pdf_file.rb, line 42
def data
  @data ||= path.binread
end