Module: Poundie

Defined in:
lib/poundie.rb,
lib/poundie/plugin.rb,
lib/poundie/runner.rb,
lib/poundie/campfire/user.rb,
lib/poundie/plugins/debug.rb,
lib/poundie/plugins/greeter.rb,
lib/poundie/campfire/message.rb

Defined Under Namespace

Modules: Campfire, Plugins Classes: Plugin, Runner

Class Method Summary collapse

Class Method Details

.start(name = "default") ⇒ Object



20
21
22
23
24
# File 'lib/poundie.rb', line 20

def self.start(name="default")
  name.gsub!(/\W/, '_')
  runner = Runner.new(name)
  runner.run
end

.use(plugin) ⇒ Object



26
27
28
29
# File 'lib/poundie.rb', line 26

def self.use(plugin)
  puts "Using #{plugin}"
  Poundie::Plugin.active << Poundie::Plugin.list[plugin]
end