lib/fat_free_crm/plugin.rb
# For the outside world new plugins can only be created through self.register.
For the outside world new plugins can only be created through self.register.
For the outside world new plugins can only be created through self . register .
def register(id, initializer = nil, &block)
        unless @@list.include?(id)
          plugin = new(id, initializer)
          plugin.instance_eval(&block)            
          plugin.name(id.to_s) unless plugin.name 
          @@list[id] = plugin
        end
      end
def register ( id , initializer = nil , & block ) unless @@list . include? ( id ) plugin = new ( id , initializer ) plugin . instance_eval ( & block ) plugin . name ( id . to_s ) unless plugin . name @@list [ id ] = plugin end end
For the outside world new plugins can only be created through self.register.
For the outside world new plugins can only be created through self . register .
# Grab plugin properties. # Set default name if the name property was missing.
id
<not_specific>
initializer
<not_specific>
block
<not_specific>