Class: Folder
Overview
for recursively parsing bookmarks
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(title = '|', json) ⇒ Folder
constructor
A new instance of Folder.
- #json ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(title = '|', json) ⇒ Folder
Returns a new instance of Folder.
123 124 125 126 |
# File 'lib/bookmarks.rb', line 123 def initialize(title='|', json) @title = title.gsub(/[:,'"]/, '-').downcase @json = json end |
Instance Method Details
#each ⇒ Object
130 |
# File 'lib/bookmarks.rb', line 130 def each() @json.each end |
#json ⇒ Object
128 |
# File 'lib/bookmarks.rb', line 128 def json() @json end |
#title ⇒ Object
129 |
# File 'lib/bookmarks.rb', line 129 def title() @title end |