Class: Plugin

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#definitition_fileObject

Returns the value of attribute definitition_file.



95
96
97
# File 'lib/zmb/plugin.rb', line 95

def definitition_file
  @definitition_file
end

#descriptionObject

Returns the value of attribute description.



95
96
97
# File 'lib/zmb/plugin.rb', line 95

def description
  @description
end

#multi_instancesObject

Returns the value of attribute multi_instances.



95
96
97
# File 'lib/zmb/plugin.rb', line 95

def multi_instances
  @multi_instances
end

#nameObject

Returns the value of attribute name.



95
96
97
# File 'lib/zmb/plugin.rb', line 95

def name
  @name
end

#objectObject

Returns the value of attribute object.



95
96
97
# File 'lib/zmb/plugin.rb', line 95

def object
  @object
end

Class Method Details

.define(&block) ⇒ Object



97
98
99
100
101
# File 'lib/zmb/plugin.rb', line 97

def self.define(&block)
  builder = PluginBuilder.new(&block)
  builder.build
  builder.plugin
end

Instance Method Details

#multi_instances?Boolean

Returns:

  • (Boolean)


103
104
105
106
107
108
109
# File 'lib/zmb/plugin.rb', line 103

def multi_instances?
  if @multi_instances then
    @multi_instances
  else
    false
  end
end