Module: WebpageArchivist::ElementWithContent

Included in:
WebpageElement
Defined in:
lib/webpage-archivist/models.rb

Instance Method Summary collapse

Instance Method Details

#save_content(content) ⇒ Object



114
115
116
# File 'lib/webpage-archivist/models.rb', line 114

def save_content content
  File.open(File.join(webpage.repository_dir, file_name), 'w') { |f| f.write(content) }
end