class Nucleon::Plugin::Event

Public Class Methods

build_info(namespace, plugin_type, data) click to toggle source
Calls superclass method
   # File lib/core/plugin/event.rb
30 def self.build_info(namespace, plugin_type, data)  
31   data = data.split(/\s*,\s*/) if data.is_a?(String)
32   return super(namespace, plugin_type, data)
33 end
translate(data) click to toggle source
Calls superclass method
   # File lib/core/plugin/event.rb
37 def self.translate(data)
38   options = super(data)
39   
40   case data        
41   when String
42     components = data.split(':')
43     
44     options[:provider] = components.shift
45     options[:string]   = components.join(':')
46     
47     logger.debug("Translating event options: #{options.inspect}") 
48   end
49   return options  
50 end

Public Instance Methods

check(source) click to toggle source
   # File lib/core/plugin/event.rb
22 def check(source)
23   # Implement in sub classes
24   return true
25 end
render() click to toggle source
   # File lib/core/plugin/event.rb
16 def render
17   return name
18 end