Module: FirefoxZip
- Defined in:
- lib/firefox_zip.rb,
lib/firefox_zip/version.rb,
lib/firefox_zip/files/project.rb,
lib/firefox_zip/parses/manifest.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.description ⇒ Object
readonly
Returns the value of attribute description.
-
.icon ⇒ Object
readonly
Returns the value of attribute icon.
-
.icons ⇒ Object
readonly
Returns the value of attribute icons.
-
.launch_path ⇒ Object
readonly
Returns the value of attribute launch_path.
-
.name ⇒ Object
readonly
Returns the value of attribute name.
-
.permissions ⇒ Object
readonly
Returns the value of attribute permissions.
-
.type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Class Attribute Details
.description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/firefox_zip.rb', line 6 def description @description end |
.icon ⇒ Object (readonly)
Returns the value of attribute icon.
6 7 8 |
# File 'lib/firefox_zip.rb', line 6 def icon @icon end |
.icons ⇒ Object (readonly)
Returns the value of attribute icons.
6 7 8 |
# File 'lib/firefox_zip.rb', line 6 def icons @icons end |
.launch_path ⇒ Object (readonly)
Returns the value of attribute launch_path.
6 7 8 |
# File 'lib/firefox_zip.rb', line 6 def launch_path @launch_path end |
.name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/firefox_zip.rb', line 6 def name @name end |
.permissions ⇒ Object (readonly)
Returns the value of attribute permissions.
6 7 8 |
# File 'lib/firefox_zip.rb', line 6 def end |
.type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/firefox_zip.rb', line 6 def type @type end |
Class Method Details
.analyze(file_path) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/firefox_zip.rb', line 8 def analyze(file_path) project = Files::Project.new(file_path) @name = project.manifest_data.name @description = project.manifest_data.description @launch_path = project.manifest_data.launch_path @icons = project.icons @icon = project.icon @type = project.manifest_data.type = project.manifest_data. self end |