Class: Firefox::Addons

Inherits:
Fondue::HashClass show all
Defined in:
lib/firefox/addons.rb

Overview

TODO: extension listing using <profile>/extensions.sqlite TODO: extension installation using zip/zip TODO: extension removal

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Fondue::HashClass

get_hash_attribute, hash_attribute, #method_missing, stringify

Constructor Details

#initialize(extension_path) ⇒ Addons

Returns a new instance of Addons.



8
9
10
11
# File 'lib/firefox/addons.rb', line 8

def initialize extension_path
  @path = extension_path
  @addons = {}
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fondue::HashClass

Instance Attribute Details

#addonsObject

Returns the value of attribute addons.



6
7
8
# File 'lib/firefox/addons.rb', line 6

def addons
  @addons
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/firefox/addons.rb', line 6

def path
  @path
end