class Noir::Command::Format::PDFURL
Public Class Methods
execute(*args)
click to toggle source
# File lib/noir/command/format/pdf_url.rb, line 6 def self.execute *args raise 'URL Missing. Please input a link in argument.'if args.empty? args.each do |url| if URI.regexp.match(url) puts URI.decode_www_form(url).find{|a| a.first == 'url'} else puts 'PDF URL missing' end end end