class Rchive
Attributes
csss[RW]
doc[RW]
images[RW]
url[RW]
Public Class Methods
new( url )
click to toggle source
# File lib/rchive.rb, line 10 def initialize( url ) base_url = URI.parse( url ) @base_url = base_url.scheme + '://' + base_url.host @url = url @doc = doc end
Public Instance Methods
save()
click to toggle source
# File lib/rchive.rb, line 53 def save self.csss self.images File.open( 'tmp.html' , 'w') { |f| f.write(@doc.to_html) } end