Class: Folder

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/bookmarks.rb

Overview

for recursively parsing bookmarks

Instance Method Summary collapse

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

#eachObject



123
# File 'lib/bookmarks.rb', line 123

def each() @json.each end

#jsonObject



121
# File 'lib/bookmarks.rb', line 121

def json() @json end

#titleObject



122
# File 'lib/bookmarks.rb', line 122

def title() @title end