Class: SycLink::Chrome
Overview
Importer for Google Chrome links
Constant Summary
Constants inherited from Importer
Instance Attribute Summary
Attributes inherited from Importer
Instance Method Summary collapse
-
#read ⇒ Object
Reads the content of the Google Chrome bookmarks file.
Methods inherited from Importer
Constructor Details
This class inherits a constructor from SycLink::Importer
Instance Method Details
#read ⇒ Object
Reads the content of the Google Chrome bookmarks file
10 11 12 13 |
# File 'lib/syclink/chrome.rb', line 10 def read serialized = File.read(path) extract_links(JSON.parse(serialized)).flatten.each_slice(4).to_a end |