Class: TestFile::PDFBuilder
- Inherits:
-
Struct
- Object
- Struct
- TestFile::PDFBuilder
- Defined in:
- lib/test_file/builder.rb
Instance Attribute Summary collapse
-
#builder ⇒ Object
Returns the value of attribute builder.
Instance Method Summary collapse
Instance Attribute Details
#builder ⇒ Object
Returns the value of attribute builder
63 64 65 |
# File 'lib/test_file/builder.rb', line 63 def builder @builder end |
Instance Method Details
#delete ⇒ Object
64 65 66 |
# File 'lib/test_file/builder.rb', line 64 def delete builder.delete end |
#exists? ⇒ Boolean
67 68 69 |
# File 'lib/test_file/builder.rb', line 67 def exists? builder.exists? end |
#include?(content) ⇒ Boolean
73 74 75 |
# File 'lib/test_file/builder.rb', line 73 def include?(content) reader.pages.map { |page| page.text }.join.include? content end |
#reader ⇒ Object
70 71 72 |
# File 'lib/test_file/builder.rb', line 70 def reader PDF::Reader.new(builder.reader) end |