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.
116 117 118 119 |
# File 'lib/bookmarks.rb', line 116 def initialize(title='/', json) @title = title.gsub(/[: ,'"]/, '-').downcase @json = json end |
Instance Method Details
#each ⇒ Object
123 |
# File 'lib/bookmarks.rb', line 123 def each() @json.each end |
#json ⇒ Object
121 |
# File 'lib/bookmarks.rb', line 121 def json() @json end |
#title ⇒ Object
122 |
# File 'lib/bookmarks.rb', line 122 def title() @title end |