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.



123
124
125
126
# File 'lib/bookmarks.rb', line 123

def initialize(title='|', json)
  @title = title.gsub(/[:,'"]/, '-').downcase
  @json = json
end

Instance Method Details

#eachObject



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

def each() @json.each end

#jsonObject



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

def json() @json end

#titleObject



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

def title() @title end