Class: Jpdfunite::PdfFile
Instance Attribute Summary collapse
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from Outline
Instance Method Summary collapse
-
#initialize(path, title = File.basename(path, ".pdf")) ⇒ PdfFile
constructor
A new instance of PdfFile.
Methods inherited from Outline
Constructor Details
#initialize(path, title = File.basename(path, ".pdf")) ⇒ PdfFile
89 90 91 92 93 |
# File 'lib/jpdfunite.rb', line 89 def initialize(path, title = File.basename(path, ".pdf")) @path = path.shellescape super(title) get_pages end |
Instance Attribute Details
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
87 88 89 |
# File 'lib/jpdfunite.rb', line 87 def pages @pages end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
87 88 89 |
# File 'lib/jpdfunite.rb', line 87 def path @path end |