Class: PluginPack

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/plugin/plugin_pack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#authorObject

Returns the value of attribute author.



6
7
8
# File 'lib/commands/plugin/plugin_pack.rb', line 6

def author
  @author
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/commands/plugin/plugin_pack.rb', line 6

def description
  @description
end

#emailObject

Returns the value of attribute email.



6
7
8
# File 'lib/commands/plugin/plugin_pack.rb', line 6

def email
  @email
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/commands/plugin/plugin_pack.rb', line 5

def name
  @name
end

#pluginsObject (readonly)

Returns the value of attribute plugins.



5
6
7
# File 'lib/commands/plugin/plugin_pack.rb', line 5

def plugins
  @plugins
end

#websiteObject

Returns the value of attribute website.



6
7
8
# File 'lib/commands/plugin/plugin_pack.rb', line 6

def website
  @website
end

Instance Method Details

#add_plugin(name, source) ⇒ Object



17
18
19
# File 'lib/commands/plugin/plugin_pack.rb', line 17

def add_plugin(name, source)
  @plugins << Plugin.new(source, name)
end