lib/grover/grover.rb in grover-0.1.1 vs lib/grover/grover.rb in grover-0.1.2

- old
+ new

@@ -7,10 +7,11 @@ # @param [Hash] options Optional parameters to pass to PDF processor # see https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions # def initialize(url, options = {}) @url = url + @root_path = options.delete :root_path @options = options end # # Request URL with provided options and create PDF @@ -35,8 +36,8 @@ end private def root_path - File.expand_path(__dir__) + @root_path ||= File.expand_path(__dir__) end end