Class: PluginPack
- Inherits:
-
Object
- Object
- PluginPack
- Defined in:
- lib/commands/plugin/plugin_pack.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#description ⇒ Object
Returns the value of attribute description.
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#plugins ⇒ Object
readonly
Returns the value of attribute plugins.
-
#website ⇒ Object
Returns the value of attribute website.
Instance Method Summary collapse
- #add_plugin(name, source) ⇒ Object
-
#initialize(name) ⇒ PluginPack
constructor
A new instance of PluginPack.
Constructor Details
#initialize(name) ⇒ PluginPack
Returns a new instance of PluginPack.
8 9 10 11 12 13 14 15 |
# File 'lib/commands/plugin/plugin_pack.rb', line 8 def initialize(name) @name = name @plugins = [] @description = '' @author = '' @email = '' @website = '' end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
6 7 8 |
# File 'lib/commands/plugin/plugin_pack.rb', line 6 def @author end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/commands/plugin/plugin_pack.rb', line 6 def description @description end |
#email ⇒ Object
Returns the value of attribute email.
6 7 8 |
# File 'lib/commands/plugin/plugin_pack.rb', line 6 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/commands/plugin/plugin_pack.rb', line 5 def name @name end |
#plugins ⇒ Object (readonly)
Returns the value of attribute plugins.
5 6 7 |
# File 'lib/commands/plugin/plugin_pack.rb', line 5 def plugins @plugins end |
#website ⇒ Object
Returns the value of attribute website.
6 7 8 |
# File 'lib/commands/plugin/plugin_pack.rb', line 6 def website @website end |