class RBT::GeneratePdfTutorial
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
- STORE_PDF_FILE_HERE
#¶ ↑
STORE_PDF_FILE_HERE
¶ ↑Where to store the .pdf file.
#¶ ↑
- URL
#¶ ↑
URL
¶ ↑#¶ ↑
Public Class Methods
new( run_already = true )
click to toggle source
Public Instance Methods
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/generate_pdf_tutorial.rb, line 74 def run # ======================================================================= # # First, always get rid of the old .pdf file. # ======================================================================= # remove_file(store_where?) if File.exist?(store_where?) # ======================================================================= # # Here we should have generated it. # ======================================================================= # opnn; e 'Next trying the URL `'+sfancy(URL)+'`.' open(URL) result = "The .pdf file should now exist at "\ "`#{sfile(store_where?)}`".dup if File.exist? store_where? result << ' (Yes, it does exist there)' end result << '.' opnn; e result end