Module: PostRemoteLog::Methods

Defined in:
lib/post_remote_log/methods.rb,
lib/post_remote_log/methods/email.rb,
lib/post_remote_log/methods/growl.rb,
lib/post_remote_log/methods/xmlrpc.rb

Defined Under Namespace

Classes: Email, Growl, XMLRPC

Constant Summary collapse

@@methods =
{}

Class Method Summary collapse

Class Method Details

.load_method(name) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/post_remote_log/methods.rb', line 7

def self.load_method(name)
	name = name.to_sym

	unless @@methods[name]
		require File.join(File.dirname(__FILE__), "methods", name.to_s)
	end

	return @@methods[name]
end